From c15e81afdd5413f94df23eb82b6fc65875cb07fb Mon Sep 17 00:00:00 2001 From: Johan Bergström Date: Tue, 17 Mar 2015 12:06:48 +1100 Subject: 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 --- test/parallel/test-dgram-address.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/parallel/test-dgram-address.js') 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'; -- cgit v1.2.3