Skip to content

Commit

Permalink
test: skip test-dns-ipv6.js if ipv6 is unavailable
Browse files Browse the repository at this point in the history
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: #3444
  • Loading branch information
Junliang Yan authored and jasnell committed Oct 26, 2015
1 parent 47ab7c7 commit 49549c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/internet/test-dns-ipv6.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 49549c9

Please sign in to comment.