Skip to content

Commit

Permalink
Separate failing part of "run --once" test into own test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Newman committed Nov 2, 2016
1 parent 476d6bf commit e345fc2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tools/tests/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit e345fc2

Please sign in to comment.