mirror of https://github.com/nodejs/node.git
test: wait for 'close' event for stdout
At the 'exit' event, it is sometimes not done writing to stdout.pull/24503/head
parent
d0c010e39b
commit
75670d3f63
|
@ -43,7 +43,7 @@ child.stderr.on('data', function(c) {
|
||||||
output += c;
|
output += c;
|
||||||
});
|
});
|
||||||
|
|
||||||
child.on('exit', function(code) {
|
child.on('close', function(code) {
|
||||||
try {
|
try {
|
||||||
output = JSON.parse(output);
|
output = JSON.parse(output);
|
||||||
} catch (er) {
|
} catch (er) {
|
||||||
|
|
Loading…
Reference in New Issue