Browse Source

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.
v0.10.0-release
isaacs 12 years ago
parent
commit
6e34dfd9e8
  1. 11
      test/simple/test-cluster-bind-twice-v2.js

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

Loading…
Cancel
Save