Make sure child scripts are quit after specs are done.
This commit is contained in:
parent
a73aea3bda
commit
ce487fe1da
2 changed files with 4 additions and 0 deletions
3
spec/fixtures/module/fork_ping.js
vendored
3
spec/fixtures/module/fork_ping.js
vendored
|
@ -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);
|
||||
});
|
||||
|
|
1
spec/fixtures/module/ping.js
vendored
1
spec/fixtures/module/ping.js
vendored
|
@ -1,3 +1,4 @@
|
|||
process.on('message', function(msg) {
|
||||
process.send(msg);
|
||||
process.exit(0);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue