From c6ba40e0b36db01a105b626a95c5e0409b35e967 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Wed, 16 Oct 2024 15:05:05 -0500 Subject: [PATCH] flapper 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);