Browse Source

Fixes #1197. Fix failing os.getNetworkInterfaces() test in test-os.js

v0.7.4-release
Ben Noordhuis 14 years ago
committed by Ryan Dahl
parent
commit
5c38163787
  1. 5
      test/simple/test-os.js

5
test/simple/test-os.js

@ -64,6 +64,9 @@ var interfaces = os.getNetworkInterfaces();
console.error(interfaces);
switch (platform) {
case 'linux':
assert.equal('127.0.0.1', interfaces.lo.ip);
var filter = function(e) { return e.address == '127.0.0.1'; };
var actual = interfaces.lo.filter(filter);
var expected = [{ address: '127.0.0.1', family: 'IPv4', internal: true }];
assert.deepEqual(actual, expected);
break;
}

Loading…
Cancel
Save