Browse Source

test: skip test-dns-ipv6.js if ipv6 is unavailable

Test should be skipped if ipv6 is unavailable on the running system.

Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/3444
process-exit-stdio-flushing
Junliang Yan 9 years ago
committed by James M Snell
parent
commit
a1886cf1be
  1. 5
      test/internet/test-dns-ipv6.js

5
test/internet/test-dns-ipv6.js

@ -12,6 +12,11 @@ var expected = 0,
running = false,
queue = [];
if (!common.hasIPv6) {
console.log('1..0 # Skipped: this test, no IPv6 support');
return;
}
function TEST(f) {
function next() {
var f = queue.shift();

Loading…
Cancel
Save