summaryrefslogtreecommitdiff
path: root/test/parallel/test-dgram-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/parallel/test-dgram-address.js
parentfe0f015c5159633127e268ebfc5db121883bc35c (diff)
downloadandroid-node-v8-c15e81afdd5413f94df23eb82b6fc65875cb07fb.tar.gz
android-node-v8-c15e81afdd5413f94df23eb82b6fc65875cb07fb.tar.bz2
android-node-v8-c15e81afdd5413f94df23eb82b6fc65875cb07fb.zip
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/parallel/test-dgram-address.js')
-rw-r--r--test/parallel/test-dgram-address.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-dgram-address.js b/test/parallel/test-dgram-address.js
index bab4507612..d0781a9452 100644
--- a/test/parallel/test-dgram-address.js
+++ b/test/parallel/test-dgram-address.js
@@ -3,7 +3,7 @@ var assert = require('assert');
var dgram = require('dgram');
// IPv4 Test
-var localhost_ipv4 = '127.0.0.1';
+var localhost_ipv4 = common.localhost_ipv4;
var socket_ipv4 = dgram.createSocket('udp4');
var family_ipv4 = 'IPv4';