Skip to content

Commit 89b25fa

Browse files
santigimenoevanlucas
authored andcommittedMay 17, 2016
test: fix test-process-exec-argv flakiness
Wait for the `close` event before parsing the child stdout output. Fixes: #6480 PR-URL: #6575 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 3f9d724 commit 89b25fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/parallel/test-process-exec-argv.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (process.argv[2] === 'child') {
1515
out += chunk;
1616
});
1717

18-
child.on('exit', function() {
18+
child.on('close', function() {
1919
assert.deepStrictEqual(JSON.parse(out), execArgv);
2020
});
2121
}

0 commit comments

Comments
 (0)
Please sign in to comment.