tests: don't assume IPv4 only in remote addr tests
authorJulien Gilli <julien.gilli@joyent.com>
Mon, 11 Aug 2014 20:29:00 +0000 (13:29 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Wed, 13 Aug 2014 18:44:15 +0000 (11:44 -0700)
commit0565d52a71313ca1334fa89f11cb626e4bc2b522
tree4c80a27d26ee2e6aaff8f20b8961297d8ca0049c
parentc7b42fe2e5342c903cf36351d1d13b9d43261b70
tests: don't assume IPv4 only in remote addr tests

Tests in test-net-remote-address-port.js assume that client and server
sockets always use IPv4. However, depending on the OS and the network
interfaces setup, this is not true. This change makes the test consider
that both IPv4 or IPv6 sockets are valid

Fixes #8096.

Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
test/simple/test-net-remote-address-port.js