@@ -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