diff --git a/kv/tests/kv_test.ts b/kv/tests/kv_test.ts index 4e2a92d4..1ffe8a18 100644 --- a/kv/tests/kv_test.ts +++ b/kv/tests/kv_test.ts @@ -399,8 +399,9 @@ Deno.test("kv - history and watch cleanup", async () => { } } + await delay(500); + // need to give some time for promises to be resolved - await delay(100); const nci = nc as NatsConnectionImpl; const min = nci.protocol.subscriptions.getMux() ? 1 : 0; assertEquals(nci.protocol.subscriptions.size(), min);