diff --git a/test/parallel/test-process-exec-argv.js b/test/parallel/test-process-exec-argv.js index 282bfdf51a..178b84c23f 100644 --- a/test/parallel/test-process-exec-argv.js +++ b/test/parallel/test-process-exec-argv.js @@ -15,7 +15,7 @@ if (process.argv[2] === 'child') { out += chunk; }); - child.on('exit', function() { + child.on('close', function() { assert.deepStrictEqual(JSON.parse(out), execArgv); }); }