From 42b8682a518e368869e86f01c4ff58978b98f0dd Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 19 Apr 2013 08:32:24 -0700 Subject: [PATCH] test: fix dgram-bind-default-address on osx Allow the IPv4-mapped-as-IPv6 style address. --- test/simple/test-dgram-bind-default-address.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/simple/test-dgram-bind-default-address.js b/test/simple/test-dgram-bind-default-address.js index 96ffa07ae3..ae1b472a08 100644 --- a/test/simple/test-dgram-bind-default-address.js +++ b/test/simple/test-dgram-bind-default-address.js @@ -31,6 +31,9 @@ dgram.createSocket('udp4').bind(common.PORT + 0, common.mustCall(function() { dgram.createSocket('udp6').bind(common.PORT + 1, common.mustCall(function() { assert.equal(this.address().port, common.PORT + 1); - assert.equal(this.address().address, '::'); + var address = this.address().address; + if (address === '::ffff:0.0.0.0') + address = '::'; + assert.equal(address, '::'); this.close(); }));