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.
This commit is contained in:
isaacs 2013-03-08 18:31:21 -08:00
parent 98c6a81771
commit 6e34dfd9e8

View File

@ -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');