@@ -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) {
301301t .Run ("Updates" ,func (t * testing.T ) {
302302t .Parallel ()
303303
304- db := dbmem . New ( )
304+ db , _ := dbtestutil . NewDB ( t )
305305validateCalls := 0
306306refreshCalls := 0
307307fake ,config ,link := setupOauth2Test (t ,testConfig {
@@ -342,7 +342,7 @@ func TestRefreshToken(t *testing.T) {
342342t .Run ("WithExtra" ,func (t * testing.T ) {
343343t .Parallel ()
344344
345- db := dbmem . New ( )
345+ db , _ := dbtestutil . NewDB ( t )
346346fake ,config ,link := setupOauth2Test (t ,testConfig {
347347FakeIDPOpts : []oidctest.FakeIDPOpt {
348348oidctest .WithMutateToken (func (token map [string ]interface {}) {