diff --git a/test/run.js b/test/run.js index 84e7363a65..2d44344745 100644 --- a/test/run.js +++ b/test/run.js @@ -13,11 +13,10 @@ driver.runTests(report); console.log(testsRun + " tests run in " + (+new Date - t0) + "ms"); if (failed) { - process.stdout.once('drain', function () { + console.log(failed + " failures."); + process.stdout.write("", function() { process.exit(1); }); - - console.log(failed + " failures."); } else { console.log("All passed."); -} +} \ No newline at end of file