Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e038db

Browse files
authored
chore(enterprise/replicasync): remove dbmem from tests (#18801)
Related to#15109.
1 parent5e9cbe8 commit8e038db

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
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()
216+
db,pubsub:=dbtestutil.NewDB(t)
223217
logger:=testutil.Logger(t)
224218
dh:=&derpyHandler{}
225219
deferdh.requireOnlyDERPPaths(t)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp