From 75670d3f630cbd96cadc75c62f40747dcbf966bd Mon Sep 17 00:00:00 2001 From: isaacs Date: Sun, 20 May 2012 09:40:10 -0300 Subject: [PATCH] test: wait for 'close' event for stdout At the 'exit' event, it is sometimes not done writing to stdout. --- test/simple/test-stdout-close-catch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-stdout-close-catch.js b/test/simple/test-stdout-close-catch.js index ab4342b6163..f517a6cbe43 100644 --- a/test/simple/test-stdout-close-catch.js +++ b/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) {