Skip to content

Commit 1ff5f7d

Browse files
committed
Move pubsub to in-memory for twenty test
1 parent 76e0511 commit 1ff5f7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

enterprise/replicasync/replicasync_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616

1717
"cdr.dev/slog/sloggers/slogtest"
1818
"github.com/coder/coder/coderd/database"
19+
"github.com/coder/coder/coderd/database/databasefake"
1920
"github.com/coder/coder/coderd/database/dbtestutil"
2021
"github.com/coder/coder/enterprise/replicasync"
2122
"github.com/coder/coder/testutil"
@@ -200,7 +201,8 @@ func TestReplica(t *testing.T) {
200201
// Ensures that twenty concurrent replicas can spawn and all
201202
// discover each other in parallel!
202203
t.Parallel()
203-
db, pubsub := dbtestutil.NewDB(t)
204+
db := databasefake.New()
205+
pubsub := database.NewPubsubInMemory()
204206
logger := slogtest.Make(t, nil)
205207
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
206208
w.WriteHeader(http.StatusOK)

0 commit comments

Comments
 (0)