Separate failing part of "run --once" test into own test.

This commit is contained in:
Ben Newman
2016-11-02 17:07:50 -04:00
parent 476d6bf7b3
commit e345fc2d27

View File

@@ -174,16 +174,14 @@ selftest.define("run --once", ["yet-unsolved-windows-failure"], function () {
run.forbidAll("updated");
s.unlink('empty.js');
s.write('.meteor/release', originalRelease);
});
// Wait for Mongo to exit after Meteor exits.
utils.sleepMs(2000);
// Try it with a real Mongo. Make sure that it actually starts one.
s = new Sandbox;
selftest.define("run --once with real Mongo", function () {
var s = new Sandbox;
s.createApp("onceapp", "once");
s.cd("onceapp");
s.set("RUN_ONCE_OUTCOME", "mongo");
run = s.run("--once");
var run = s.run("--once");
run.waitSecs(30);
run.expectExit(86);
});