Browse Source

test: terminate gracefully in cluster-net-send

Killing the worker without ensuring the socket was closed
was causing intermittent ECONNRESET errors.
v0.11.11-release
Alexis Campailla 11 years ago
committed by Timothy J Fontaine
parent
commit
2e3da9be84
  1. 3
      test/simple/test-cluster-net-send.js

3
test/simple/test-cluster-net-send.js

@ -38,6 +38,9 @@ if (process.argv[2] !== 'child') {
handle.on('data', function(data) {
called = true;
assert.equal(data.toString(), 'hello');
});
handle.on('end', function() {
worker.kill();
});
});

Loading…
Cancel
Save