Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d48131

Browse files
authored
chore(coderd/externalauth): remove dbmem from tests (#18147)
Related to#15109
1 parentd1fc0dd commit1d48131

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎coderd/externalauth/externalauth_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"github.com/coder/coder/v2/coderd/coderdtest/oidctest"
2626
"github.com/coder/coder/v2/coderd/database"
2727
"github.com/coder/coder/v2/coderd/database/dbauthz"
28-
"github.com/coder/coder/v2/coderd/database/dbmem"
2928
"github.com/coder/coder/v2/coderd/database/dbmock"
29+
"github.com/coder/coder/v2/coderd/database/dbtestutil"
3030
"github.com/coder/coder/v2/coderd/externalauth"
3131
"github.com/coder/coder/v2/coderd/promoauth"
3232
"github.com/coder/coder/v2/codersdk"
@@ -301,7 +301,7 @@ func TestRefreshToken(t *testing.T) {
301301
t.Run("Updates",func(t*testing.T) {
302302
t.Parallel()
303303

304-
db:=dbmem.New()
304+
db,_:=dbtestutil.NewDB(t)
305305
validateCalls:=0
306306
refreshCalls:=0
307307
fake,config,link:=setupOauth2Test(t,testConfig{
@@ -342,7 +342,7 @@ func TestRefreshToken(t *testing.T) {
342342
t.Run("WithExtra",func(t*testing.T) {
343343
t.Parallel()
344344

345-
db:=dbmem.New()
345+
db,_:=dbtestutil.NewDB(t)
346346
fake,config,link:=setupOauth2Test(t,testConfig{
347347
FakeIDPOpts: []oidctest.FakeIDPOpt{
348348
oidctest.WithMutateToken(func(tokenmap[string]interface{}) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp