diff --git a/internal/apimodule/account/accountcreate_test.go b/internal/apimodule/account/accountcreate_test.go index d14ae3852..42ed07595 100644 --- a/internal/apimodule/account/accountcreate_test.go +++ b/internal/apimodule/account/accountcreate_test.go @@ -47,7 +47,6 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/storage" "github.com/superseriousbusiness/gotosocial/pkg/mastotypes" "github.com/superseriousbusiness/oauth2/v4" - "github.com/superseriousbusiness/oauth2/v4/models" oauthmodels "github.com/superseriousbusiness/oauth2/v4/models" "golang.org/x/crypto/bcrypt" ) @@ -147,7 +146,7 @@ func (suite *AccountCreateTestSuite) SetupSuite() { l.Infof("received clientSecret %+v", clientSecret) userID := args.Get(2).(string) l.Infof("received userID %+v", userID) - }).Return(&models.Token{ + }).Return(&oauthmodels.Token{ Code: "we're authorized now!", }, nil) diff --git a/internal/apimodule/account/accountupdate_test.go b/internal/apimodule/account/accountupdate_test.go index 651b4d29d..c973e0073 100644 --- a/internal/apimodule/account/accountupdate_test.go +++ b/internal/apimodule/account/accountupdate_test.go @@ -44,7 +44,6 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/oauth" "github.com/superseriousbusiness/gotosocial/internal/storage" "github.com/superseriousbusiness/oauth2/v4" - "github.com/superseriousbusiness/oauth2/v4/models" oauthmodels "github.com/superseriousbusiness/oauth2/v4/models" ) @@ -143,7 +142,7 @@ func (suite *AccountUpdateTestSuite) SetupSuite() { l.Infof("received clientSecret %+v", clientSecret) userID := args.Get(2).(string) l.Infof("received userID %+v", userID) - }).Return(&models.Token{ + }).Return(&oauthmodels.Token{ Code: "we're authorized now!", }, nil)