From 8e038db46315045289948de9716f47c7c5a0a1e5 Mon Sep 17 00:00:00 2001 From: Hugo Dutka Date: Tue, 8 Jul 2025 17:25:01 +0200 Subject: [PATCH] chore(enterprise/replicasync): remove dbmem from tests (#18801) Related to https://github.com/coder/coder/issues/15109. --- enterprise/replicasync/replicasync_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/enterprise/replicasync/replicasync_test.go b/enterprise/replicasync/replicasync_test.go index 1a9fd50e81..0438db8e21 100644 --- a/enterprise/replicasync/replicasync_test.go +++ b/enterprise/replicasync/replicasync_test.go @@ -16,10 +16,8 @@ import ( "go.uber.org/goleak" "github.com/coder/coder/v2/coderd/database" - "github.com/coder/coder/v2/coderd/database/dbmem" "github.com/coder/coder/v2/coderd/database/dbtestutil" "github.com/coder/coder/v2/coderd/database/dbtime" - "github.com/coder/coder/v2/coderd/database/pubsub" "github.com/coder/coder/v2/enterprise/replicasync" "github.com/coder/coder/v2/testutil" ) @@ -215,11 +213,7 @@ func TestReplica(t *testing.T) { t.Parallel() ctx, cancelCtx := context.WithCancel(context.Background()) defer cancelCtx() - // This doesn't use the database fake because creating - // this many PostgreSQL connections takes some - // configuration tweaking. - db := dbmem.New() - pubsub := pubsub.NewInMemory() + db, pubsub := dbtestutil.NewDB(t) logger := testutil.Logger(t) dh := &derpyHandler{} defer dh.requireOnlyDERPPaths(t)