Skip to content

Commit 1d48131

Browse files
authored
chore(coderd/externalauth): remove dbmem from tests (#18147)
Related to #15109
1 parent d1fc0dd commit 1d48131

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(token map[string]interface{}) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy