From e32475a9fa6495ec18c964fa8b5ff2d239fdd7ca Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 8 Dec 2015 21:32:19 -0800 Subject: [PATCH] fixup --- test/parallel/test-cluster-shared-leak.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-cluster-shared-leak.js b/test/parallel/test-cluster-shared-leak.js index a2233d5c60a6d8..1b63692aa62225 100644 --- a/test/parallel/test-cluster-shared-leak.js +++ b/test/parallel/test-cluster-shared-leak.js @@ -17,7 +17,7 @@ if (cluster.isMaster) { worker2 = cluster.fork(); conn = net.connect(common.PORT, common.mustCall(function() { worker1.disconnect(); - worker2.disconnect(); + worker2.on('online', common.mustCall(worker2.disconnect)); })); conn.on('error', function(e) { // ECONNRESET is OK