|
@ -82,8 +82,11 @@ function pingPongTest (port, host, on_complete) { |
|
|
/* All are run at once, so run on different ports */ |
|
|
/* All are run at once, so run on different ports */ |
|
|
pingPongTest(PORT, "localhost"); |
|
|
pingPongTest(PORT, "localhost"); |
|
|
pingPongTest(PORT+1, null); |
|
|
pingPongTest(PORT+1, null); |
|
|
pingPongTest(PORT+2, "::1"); |
|
|
|
|
|
|
|
|
// This IPv6 isn't working on Solaris
|
|
|
|
|
|
var solaris = /sunos/i.test(process.platform); |
|
|
|
|
|
if (!solaris) pingPongTest(PORT+2, "::1"); |
|
|
|
|
|
|
|
|
process.addListener("exit", function () { |
|
|
process.addListener("exit", function () { |
|
|
assert.equal(3, tests_run); |
|
|
assert.equal(solaris ? 2 : 3, tests_run); |
|
|
}); |
|
|
}); |
|
|