diff --git a/test/parallel/test-repl-sigint-nested-eval.js b/test/parallel/test-repl-sigint-nested-eval.js index 28e4d44b235cde..acf21a0abbc524 100644 --- a/test/parallel/test-repl-sigint-nested-eval.js +++ b/test/parallel/test-repl-sigint-nested-eval.js @@ -23,7 +23,7 @@ child.stdout.on('data', function(c) { child.stdout.once('data', common.mustCall(() => { process.on('SIGUSR2', common.mustCall(() => { - process.kill(child.pid, 'SIGINT'); + setTimeout(() => { process.kill(child.pid, 'SIGINT'); }, 10); child.stdout.once('data', common.mustCall(() => { // Make sure REPL still works. child.stdin.end('"foobar"\n');