[Pkg-javascript-commits] [node-acorn-jsx] 220/484: Exit should wait for stdout (joyent/node#1669).
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-acorn-jsx.
commit 7c34bb34ce6fc7eb73bfe88aebabf1a5bf7d67c7
Author: Ingvar Stepanyan <me at rreverser.com>
Date: Thu Jul 24 23:22:52 2014 +0300
Exit should wait for stdout (joyent/node#1669).
---
test/run.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/test/run.js b/test/run.js
index 59d4abc..84e7363 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.");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git
More information about the Pkg-javascript-commits
mailing list