From 6e34dfd9e80b82180d3fdfaee9623ed06ff562a4 Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 8 Mar 2013 18:31:21 -0800 Subject: [PATCH] test: Fail faster in simple/test-cluster-bind-twice-v2 Crashing on windows, but at least now it's a crash rathert han a timeout. --- test/simple/test-cluster-bind-twice-v2.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/simple/test-cluster-bind-twice-v2.js b/test/simple/test-cluster-bind-twice-v2.js index 87a932b5bc7..dc059edc7c5 100644 --- a/test/simple/test-cluster-bind-twice-v2.js +++ b/test/simple/test-cluster-bind-twice-v2.js @@ -50,6 +50,17 @@ if (!id) { var a = fork(__filename, ['one']); var b = fork(__filename, ['two']); + a.on('exit', function(c) { + if (c) + throw new Error('A exited with ' + c); + }); + + b.on('exit', function(c) { + if (c) + throw new Error('B exited with ' + c); + }); + + a.on('message', function(m) { if (typeof m === 'object') return; assert.equal(m, 'READY');