mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-01-12 22:44:10 +08:00
Make sure child scripts are quit after specs are done.
This commit is contained in:
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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user