diff --git a/test/simple/test-cluster-net-send.js b/test/simple/test-cluster-net-send.js index 846ae5d7a69..1313a624a79 100644 --- a/test/simple/test-cluster-net-send.js +++ b/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(); }); });