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