mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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
This commit is contained in:
1 parent
9120a04981
commit
7c7ef01e65
1 file changed
+5
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user