Browse Source

test: reap children when cluster-bind-twice fails

v0.11.2-release
Timothy J Fontaine 12 years ago
parent
commit
a90dc41df2
  1. 8
      test/simple/test-cluster-bind-twice.js

8
test/simple/test-cluster-bind-twice.js

@ -51,13 +51,17 @@ if (!id) {
var b = fork(__filename, ['two']);
a.on('exit', function(c) {
if (c)
if (c) {
b.send('QUIT');
throw new Error('A exited with ' + c);
}
});
b.on('exit', function(c) {
if (c)
if (c) {
a.send('QUIT');
throw new Error('B exited with ' + c);
}
});

Loading…
Cancel
Save