diff options
Diffstat (limited to 'routers/web/user/oauth_test.go')
-rw-r--r-- | routers/web/user/oauth_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/user/oauth_test.go b/routers/web/user/oauth_test.go index e0c1bf4e77..dfdaa9a1ed 100644 --- a/routers/web/user/oauth_test.go +++ b/routers/web/user/oauth_test.go @@ -8,7 +8,6 @@ import ( "testing" "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/login" "code.gitea.io/gitea/models/unittest" "code.gitea.io/gitea/services/auth/source/oauth2" @@ -59,7 +58,7 @@ func TestNewAccessTokenResponse_OIDCToken(t *testing.T) { assert.Empty(t, oidcToken.Email) assert.False(t, oidcToken.EmailVerified) - user := db.AssertExistsAndLoadBean(t, &models.User{ID: 5}).(*models.User) + user := unittest.AssertExistsAndLoadBean(t, &models.User{ID: 5}).(*models.User) grants, err = login.GetOAuth2GrantsByUserID(user.ID) assert.NoError(t, err) assert.Len(t, grants, 1) |