Skip to content

Commit b6fbfb8

Browse files
committed
chore(tests): fix race condition
1 parent c3dd9cf commit b6fbfb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/subscriptions-lds/__tests__/main.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ test("cleans up", async () => {
1515
);
1616
expect(initialPgRows.length).toEqual(1);
1717
await l.close();
18+
await sleep(20);
1819
const { rows: finalPgRows } = await query(
1920
"select * from pg_catalog.pg_replication_slots where slot_name = $1",
2021
[l.slotName]

0 commit comments

Comments
 (0)