From a90dc41df2a10858e7135cab55af335da9bc4b05 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Mon, 6 May 2013 11:31:57 -0700 Subject: [PATCH] test: reap children when cluster-bind-twice fails --- test/simple/test-cluster-bind-twice.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/simple/test-cluster-bind-twice.js b/test/simple/test-cluster-bind-twice.js index e14d9b6987..311bc60faa 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); + } });