mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Make timing of minimongo observeChanges test more reliable.
This commit is contained in:
@@ -2532,10 +2532,12 @@ if (Meteor.isServer) {
|
||||
self.events.push({evt: "a", id: id});
|
||||
Meteor._sleepForMs(200);
|
||||
self.events.push({evt: "b", id: id});
|
||||
if (! self.two) {
|
||||
self.two = self.C.insert({});
|
||||
}
|
||||
}
|
||||
});
|
||||
self.one = self.C.insert({});
|
||||
self.two = self.C.insert({});
|
||||
pollUntil(expect, function () {
|
||||
return self.events.length === 4;
|
||||
}, 10000);
|
||||
|
||||
Reference in New Issue
Block a user