diff --git a/test/run.js b/test/run.js index 59d4abce7..84e7363a6 100644 --- a/test/run.js +++ b/test/run.js @@ -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.");