From 5ab6837208285f39f9837e91b4170b365a6a8400 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 24 Jul 2014 23:41:23 +0300 Subject: [PATCH] Workaround for joyent/node#3584. --- test/run.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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