test: wait for 'close' event for stdout

At the 'exit' event, it is sometimes not done writing to stdout.
pull/24503/head
isaacs 2012-05-20 09:40:10 -03:00
parent d0c010e39b
commit 75670d3f63
1 changed files with 1 additions and 1 deletions

View File

@ -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) {