test: improve cluster-disconnect-handles test
authorBrian White <mscdex@mscdex.net>
Tue, 1 Dec 2015 04:56:35 +0000 (23:56 -0500)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:17 +0000 (11:52 -0800)
commitac939d51d9ddc1c27d7451d65556ec7f99bfd409
treef5b377a2b7079288d3894c5437e625971d491e2f
parent22ba1b41159c9e84952f5a9cedeb0684d1cf28f1
test: improve cluster-disconnect-handles test

This commit fixes two issues in test-cluster-disconnect-handles:

1. If the master's TCP connection to the worker fails, the worker
process stays alive and causes many other tests that use the same
common port number to also fail (with EADDRINUSE).

2. One particular problem that can cause the master's TCP connection
to fail is attempting an IPv6 connection to the worker when no IPv6
network interfaces are available.

PR-URL: https://github.com/nodejs/node/pull/4084
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
test/parallel/test-cluster-disconnect-handles.js