mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Make test more reliable by calling insert in Meteor.startup.
This commit is contained in:
@@ -14,6 +14,8 @@ if (process.env.RUN_ONCE_OUTCOME === "hang") {
|
||||
|
||||
if (process.env.RUN_ONCE_OUTCOME === "mongo") {
|
||||
var test = new Mongo.Collection('test');
|
||||
test.insert({ value: 86 });
|
||||
process.exit(test.findOne().value);
|
||||
Meteor.startup(function () {
|
||||
test.insert({ value: 86 });
|
||||
process.exit(test.findOne().value);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user