diff --git a/test/simple/test-child-process-stdout-flush.js b/test/simple/test-child-process-stdout-flush.js index 8dc39c3a5b8..adb33f5c035 100644 --- a/test/simple/test-child-process-stdout-flush.js +++ b/test/simple/test-child-process-stdout-flush.js @@ -46,7 +46,7 @@ child.stdout.on('data', function(data) { console.log(count); }); -child.on('exit', function(data) { +child.on('close', function(data) { assert.equal(n, count); console.log('okay'); });