Skip to content

Commit 8e038db

Browse files
authored
chore(enterprise/replicasync): remove dbmem from tests (#18801)
Related to #15109.
1 parent 5e9cbe8 commit 8e038db

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

enterprise/replicasync/replicasync_test.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ import (
1616
"go.uber.org/goleak"
1717

1818
"github.com/coder/coder/v2/coderd/database"
19-
"github.com/coder/coder/v2/coderd/database/dbmem"
2019
"github.com/coder/coder/v2/coderd/database/dbtestutil"
2120
"github.com/coder/coder/v2/coderd/database/dbtime"
22-
"github.com/coder/coder/v2/coderd/database/pubsub"
2321
"github.com/coder/coder/v2/enterprise/replicasync"
2422
"github.com/coder/coder/v2/testutil"
2523
)
@@ -215,11 +213,7 @@ func TestReplica(t *testing.T) {
215213
t.Parallel()
216214
ctx, cancelCtx := context.WithCancel(context.Background())
217215
defer cancelCtx()
218-
// This doesn't use the database fake because creating
219-
// this many PostgreSQL connections takes some
220-
// configuration tweaking.
221-
db := dbmem.New()
222-
pubsub := pubsub.NewInMemory()
216+
db, pubsub := dbtestutil.NewDB(t)
223217
logger := testutil.Logger(t)
224218
dh := &derpyHandler{}
225219
defer dh.requireOnlyDERPPaths(t)

0 commit comments

Comments
 (0)