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 authored and marijnh committed Jul 29, 2014
1 parent 3779ed4 commit 7c34bb3
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 7c34bb3

Please sign in to comment.