diff options
author | Gireesh Punathil <gpunathi@in.ibm.com> | 2016-07-13 02:03:55 -0400 |
---|---|---|
committer | Michael Dawson <michael_dawson@ca.ibm.com> | 2016-07-18 17:40:17 -0400 |
commit | 17883dfaafd9ffa257cefc30f37bdbd7bfa023d0 (patch) | |
tree | 4ac60d51368016a3bdb1c16d6542295b88b61740 /test | |
parent | 04b4d15b396a7befea31dbfec89f69ff71dc71ca (diff) | |
download | android-node-v8-17883dfaafd9ffa257cefc30f37bdbd7bfa023d0.tar.gz android-node-v8-17883dfaafd9ffa257cefc30f37bdbd7bfa023d0.tar.bz2 android-node-v8-17883dfaafd9ffa257cefc30f37bdbd7bfa023d0.zip |
test: avoid usage of mixed IPV6 addresses
The test case fails in AIX due to the mixed-use of unspecified
and loopback addresses. This is not a problem in most platforms
but fails in AIX. (In Windows too, but does not manifest as the
test is omitted in Windows for a different reason).
There exists no documented evidence which supports the mixed use
of unspecified and loopback addresses.
While AIX strictly follows the IPV6 specification with respect to
unspecified address ('::') and loopback address ('::1'), the test
case latches on to the behavior exhibited by other platforms,
and hence it fails in AIX.
The proposed fix is to make it work in all platforms including
AIX by using the loopback address for the client to connect,
as that is the address at which the server listens.
Fixes: https://github.com/nodejs/node/issues/7563
PR-URL: https://github.com/nodejs/node/pull/7702
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-cluster-disconnect-handles.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-disconnect-handles.js b/test/parallel/test-cluster-disconnect-handles.js index 49b8218ab9..680e316cf0 100644 --- a/test/parallel/test-cluster-disconnect-handles.js +++ b/test/parallel/test-cluster-disconnect-handles.js @@ -92,7 +92,7 @@ if (cluster.isMaster) { debugger; }; if (common.hasIPv6) - server.listen(cb); + server.listen(0, '::1', cb); else server.listen(0, common.localhostIPv4, cb); process.on('disconnect', process.exit); |