We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5e9cbe8 commit8e038dbCopy full SHA for 8e038db
enterprise/replicasync/replicasync_test.go
@@ -16,10 +16,8 @@ import (
16
"go.uber.org/goleak"
17
18
"github.com/coder/coder/v2/coderd/database"
19
-"github.com/coder/coder/v2/coderd/database/dbmem"
20
"github.com/coder/coder/v2/coderd/database/dbtestutil"
21
"github.com/coder/coder/v2/coderd/database/dbtime"
22
-"github.com/coder/coder/v2/coderd/database/pubsub"
23
"github.com/coder/coder/v2/enterprise/replicasync"
24
"github.com/coder/coder/v2/testutil"
25
)
@@ -215,11 +213,7 @@ func TestReplica(t *testing.T) {
215
213
t.Parallel()
216
214
ctx,cancelCtx:=context.WithCancel(context.Background())
217
defercancelCtx()
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()
+db,pubsub:=dbtestutil.NewDB(t)
223
logger:=testutil.Logger(t)
224
dh:=&derpyHandler{}
225
deferdh.requireOnlyDERPPaths(t)