Permalink
Browse files

test: wait for 'close' event for stdout

At the 'exit' event, it is sometimes not done writing to stdout.
  • Loading branch information...
1 parent d0c010e commit 75670d3f630cbd96cadc75c62f40747dcbf966bd @isaacs isaacs committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/simple/test-stdout-close-catch.js
@@ -43,7 +43,7 @@ child.stderr.on('data', function(c) {
output += c;
});
-child.on('exit', function(code) {
+child.on('close', function(code) {
try {
output = JSON.parse(output);
} catch (er) {

0 comments on commit 75670d3

Please sign in to comment.