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:
parent
98c6a81771
commit
6e34dfd9e8
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user