Skip to content

Commit

Permalink
Exit should wait for stdout (nodejs/node-v0.x-archive#1669).
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jul 24, 2014
1 parent 1a5f82a commit 50ab143
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ driver.runTests(report);
console.log(testsRun + " tests run in " + (+new Date - t0) + "ms");

if (failed) {
process.stdout.once('drain', function () {
process.exit(1);
});

console.log(failed + " failures.");
process.exit(1);
} else {
console.log("All passed.");
}

console.log("All passed.");

0 comments on commit 50ab143

Please sign in to comment.