From e962bade1898c2706337730121645f72e4243241 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 5 Dec 2015 19:37:23 -0800 Subject: [PATCH] test: fix flaky test-cluster-shared-leak Swallow EPIPE as there is it is expected to come up from time to time. This does not invalidate the test. Fixes: https://github.com/nodejs/node/issues/3956 PR-URL: https://github.com/nodejs/node/pull/4173 --- test/parallel/parallel.status | 1 - test/parallel/test-cluster-shared-leak.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status index 6cdd46635c9310..0171519045315e 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -7,7 +7,6 @@ prefix parallel [true] # This section applies to all platforms [$system==win32] -test-cluster-shared-leak : PASS,FLAKY test-debug-no-context : PASS,FLAKY test-tls-ticket-cluster : PASS,FLAKY diff --git a/test/parallel/test-cluster-shared-leak.js b/test/parallel/test-cluster-shared-leak.js index a4de1d33a29b8d..41f838a267e7d7 100644 --- a/test/parallel/test-cluster-shared-leak.js +++ b/test/parallel/test-cluster-shared-leak.js @@ -18,6 +18,7 @@ if (cluster.isMaster) { conn = net.connect(common.PORT, common.mustCall(function() { worker1.send('die'); worker2.send('die'); + worker2.on('error', function(e) {}); })); conn.on('error', function(e) { // ECONNRESET is OK