Make test more reliable by calling insert in Meteor.startup.

This commit is contained in:
Ben Newman
2016-11-02 17:25:26 -04:00
parent e345fc2d27
commit cfc167a67b

View File

@@ -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);
});
}