diff options
author | Johan Bergström <bugs@bergstroem.nu> | 2015-03-17 12:06:48 +1100 |
---|---|---|
committer | Johan Bergström <bugs@bergstroem.nu> | 2015-03-19 09:11:50 +1100 |
commit | c15e81afdd5413f94df23eb82b6fc65875cb07fb (patch) | |
tree | 580f0433e3b1fff6693cce1dbb3de0682317df43 /test/parallel/test-dgram-address.js | |
parent | fe0f015c5159633127e268ebfc5db121883bc35c (diff) | |
download | android-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.js | 2 |
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'; |