From ea86bd36da6cc1f6c84229471f10940f1441a5c0 Mon Sep 17 00:00:00 2001 From: enisdenjo Date: Thu, 25 Mar 2021 22:22:41 +0100 Subject: [PATCH] test: ensure complete callback on slow subscribes --- src/tests/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/server.ts b/src/tests/server.ts index 95de15b0..65404b4d 100644 --- a/src/tests/server.ts +++ b/src/tests/server.ts @@ -1512,6 +1512,8 @@ describe('Subscribe', () => { await client.waitForMessage(() => { fail("Shouldn't have received a message"); }, 30); + + await server.waitForComplete(); }); });