Browse Source

test: test-os fix win32 localhost assumption

The test is expecting an invalid result for the loopback
interface network mask, but this issue was fixed in
libuv commit 1d5c61a8b31257733c41fb507762d3eb56eecb2d

Closes #5262 #6673
v0.11.10-release
Alexis Campailla 11 years ago
committed by Timothy J Fontaine
parent
commit
c5d49ba9c2
  1. 5
      test/simple/test-os.js

5
test/simple/test-os.js

@ -101,10 +101,7 @@ switch (platform) {
case 'win32':
var filter = function(e) { return e.address == '127.0.0.1'; };
var actual = interfaces['Loopback Pseudo-Interface 1'].filter(filter);
// NOTE: Windows does not set a prefix or netmask on 127.0.0.1, so we
// default to /32 here. We could put in a special case to force
// to /8 if desired.
var expected = [{ address: '127.0.0.1', netmask: '255.255.255.255',
var expected = [{ address: '127.0.0.1', netmask: '255.0.0.0',
mac: '00:00:00:00:00:00', family: 'IPv4',
internal: true }];
assert.deepEqual(actual, expected);

Loading…
Cancel
Save