diff --git a/spec/fixtures/module/fork_ping.js b/spec/fixtures/module/fork_ping.js index e6d3f921ba2..a43f7d8dce7 100644 --- a/spec/fixtures/module/fork_ping.js +++ b/spec/fixtures/module/fork_ping.js @@ -9,3 +9,6 @@ process.on('message', function(msg) { child.on('message', function (msg) { process.send(msg); }); +child.on('exit', function(code) { + process.exit(code); +}); diff --git a/spec/fixtures/module/ping.js b/spec/fixtures/module/ping.js index dc380a1a0cc..fdb9d1ec4ce 100644 --- a/spec/fixtures/module/ping.js +++ b/spec/fixtures/module/ping.js @@ -1,3 +1,4 @@ process.on('message', function(msg) { process.send(msg); + process.exit(0); });