test: fix flaky test-cluster-shared-leak
authorClaudio Rodriguez <cjrodr@yahoo.com>
Sat, 19 Mar 2016 18:03:14 +0000 (15:03 -0300)
committerMyles Borins <mborins@us.ibm.com>
Wed, 30 Mar 2016 20:12:16 +0000 (13:12 -0700)
commit0836d7e2fbe7795befa1fa1ad858f51b63c4dbf3
tree941641d26937168d3164c2fc1505b67a3bb1b606
parent79d26ae1964078ffeb8a9d211be7297e0f8b4c30
test: fix flaky test-cluster-shared-leak

Test was flaky on centos7-64 due to an uncaught ECONNRESET
on the worker code. This catches the error so the process
will exit with code 0.

Fixes: https://github.com/nodejs/node/issues/5604
PR-URL: https://github.com/nodejs/node/pull/5802
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
test/parallel/test-cluster-shared-leak.js