Skip to content

Commit b0be7f4

Browse files
committed
fix: prevent race condition in PostgresMessageQueue test
1 parent afee8f6 commit b0be7f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/postgres/src/mq.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ test("PostgresMessageQueue", { skip: dbUrl == null }, async () => {
3434
const listening = mq.listen((message: string) => {
3535
messages.push(message);
3636
}, { signal: controller.signal });
37+
await delay(500); // prevent initialization race condition
3738
const listening2 = mq2.listen((message: string) => {
3839
messages.push(message);
3940
}, { signal: controller.signal });

0 commit comments

Comments
 (0)