chore(enterprise/replicasync): remove dbmem from tests (#18801)

Related to https://github.com/coder/coder/issues/15109.
This commit is contained in:
Hugo Dutka
2025-07-08 15:25:01 +00:00
committed by GitHub
parent 5e9cbe8a1b
commit 8e038db463
+1 -7
View File
@@ -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)