diff --git a/test/simple/test-cluster-bind-twice.js b/test/simple/test-cluster-bind-twice.js index e14d9b69873..311bc60faa1 100644 --- a/test/simple/test-cluster-bind-twice.js +++ b/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); + } });