From 1cf17253b6e438fee421ba22446db77c1ef901a2 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 16 Oct 2024 15:32:19 -0500 Subject: [PATCH] flapper (#84) Signed-off-by: Alberto Ricart --- kv/tests/kv_test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);