From dcf26d6103f10ef63e39e27e802257ea66fba81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Thu, 7 Mar 2024 17:49:32 +0100 Subject: [PATCH] fix and add new test case for unblocking mechanism --- packages/ddp-client/test/async_stubs/client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/ddp-client/test/async_stubs/client.js b/packages/ddp-client/test/async_stubs/client.js index 071567cba3..572f29f00b 100644 --- a/packages/ddp-client/test/async_stubs/client.js +++ b/packages/ddp-client/test/async_stubs/client.js @@ -326,7 +326,7 @@ Tinytest.addAsync( async function (test) { await Meteor.callAsync("getAndResetEvents"); - Meteor.callAsync("unblockedMethod", { delay: 200 }); // unblock + sleep for 20 milliseconds + Meteor.callAsync("unblockedMethod", { delay: 200 }); // unblock + sleep for 200 milliseconds Meteor.callAsync("blockingMethod"); // run straight + block let serverEvents = await Meteor.callAsync("getAndResetEvents"); @@ -345,7 +345,6 @@ Tinytest.addAsync( ["unblock end"], "should have ended the unblock method as sleep finished" ); - resolve(); }, 400) );