summaryrefslogtreecommitdiff
path: root/test/sequential/test-net-server-address.js
diff options
context:
space:
mode:
authorJohan Bergström <bugs@bergstroem.nu>2015-03-17 12:06:48 +1100
committerJohan Bergström <bugs@bergstroem.nu>2015-03-19 09:11:50 +1100
commitc15e81afdd5413f94df23eb82b6fc65875cb07fb (patch)
tree580f0433e3b1fff6693cce1dbb3de0682317df43 /test/sequential/test-net-server-address.js
parentfe0f015c5159633127e268ebfc5db121883bc35c (diff)
downloadnode-new-c15e81afdd5413f94df23eb82b6fc65875cb07fb.tar.gz
test: Introduce knowledge of FreeBSD jails
FreeBSD jails act differently than your average vm or similar application container. All routing passes through one ip address, which makes things like localhost or 0.0.0.0 resolve differently. Introduce a helper that allows us to verify if we're in a jail and another one for returning an ip address for localhost. Also, skip one test instead of trading additional complexity in common.js for one specific user scenario. PR-URL: https://github.com/iojs/io.js/pull/1167 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/sequential/test-net-server-address.js')
-rw-r--r--test/sequential/test-net-server-address.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-net-server-address.js b/test/sequential/test-net-server-address.js
index 936a7760b1..292fea2e19 100644
--- a/test/sequential/test-net-server-address.js
+++ b/test/sequential/test-net-server-address.js
@@ -3,7 +3,7 @@ var assert = require('assert');
var net = require('net');
// Test on IPv4 Server
-var localhost_ipv4 = '127.0.0.1';
+var localhost_ipv4 = common.localhost_ipv4;
var family_ipv4 = 'IPv4';
var server_ipv4 = net.createServer();