File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,8 @@ import (
16
16
"go.uber.org/goleak"
17
17
18
18
"github.com/coder/coder/v2/coderd/database"
19
- "github.com/coder/coder/v2/coderd/database/dbmem"
20
19
"github.com/coder/coder/v2/coderd/database/dbtestutil"
21
20
"github.com/coder/coder/v2/coderd/database/dbtime"
22
- "github.com/coder/coder/v2/coderd/database/pubsub"
23
21
"github.com/coder/coder/v2/enterprise/replicasync"
24
22
"github.com/coder/coder/v2/testutil"
25
23
)
@@ -215,11 +213,7 @@ func TestReplica(t *testing.T) {
215
213
t .Parallel ()
216
214
ctx , cancelCtx := context .WithCancel (context .Background ())
217
215
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 )
223
217
logger := testutil .Logger (t )
224
218
dh := & derpyHandler {}
225
219
defer dh .requireOnlyDERPPaths (t )
You can’t perform that action at this time.
0 commit comments