Exit should wait for stdout (joyent/node#1669).
This commit is contained in:
parent
3779ed41a4
commit
7c34bb34ce
@ -13,8 +13,11 @@ driver.runTests(report);
|
||||
console.log(testsRun + " tests run in " + (+new Date - t0) + "ms");
|
||||
|
||||
if (failed) {
|
||||
console.log(failed + " failures.");
|
||||
process.stdout.once('drain', function () {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
|
||||
console.log(failed + " failures.");
|
||||
} else {
|
||||
console.log("All passed.");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user