mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix and add new test case for unblocking mechanism
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user