Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: skip IPv6 part before testing it #2226

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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