Skip to content

Commit

Permalink
test: skip IPv6 part before testing it
Browse files Browse the repository at this point in the history
PR-URL: #2226
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
thefourtheye committed Jul 27, 2015
1 parent 93660c8 commit 4e78cd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/sequential/test-net-server-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ server_ipv4.listen(common.PORT, common.localhostIPv4, function() {
server_ipv4.close();
});

if (!common.hasIPv6) {
console.log('1..0 # Skipped: ipv6 part of test, no IPv6 support');
return;
}

// Test on IPv6 Server
var localhost_ipv6 = '::1';
var family_ipv6 = 'IPv6';
Expand All @@ -36,11 +41,6 @@ server_ipv6.listen(common.PORT, localhost_ipv6, function() {
server_ipv6.close();
});

if (!common.hasIPv6) {
console.log('1..0 # Skipped: ipv6 part of test, no IPv6 support');
return;
}

// Test without hostname or ip
var anycast_ipv6 = '::';
var server1 = net.createServer();
Expand Down

0 comments on commit 4e78cd7

Please sign in to comment.