mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: terminate gracefully in cluster-net-send
Killing the worker without ensuring the socket was closed was causing intermittent ECONNRESET errors.
This commit is contained in:
1 parent
fc52ed85f6
commit
2e3da9be84
1 file changed
+3
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user