Permalink
Browse files

test: fix test-tls-connect-address-family

Use port 0 instead of common.PORT.

PR-URL: #9573
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
  • Loading branch information...
mkamakura authored and targos committed Nov 12, 2016
1 parent c9509ac commit 31d1a3f8a89e709ccd7aa07d900464c234d9727f
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-tls-connect-address-family.js
@@ -18,10 +18,10 @@ function runTest() {
const ciphers = 'AECDH-NULL-SHA';
tls.createServer({ ciphers }, common.mustCall(function() {
this.close();
})).listen(common.PORT, '::1', common.mustCall(function() {
})).listen(0, '::1', common.mustCall(function() {
const options = {
host: 'localhost',
port: common.PORT,
port: this.address().port,
family: 6,
ciphers: ciphers,
rejectUnauthorized: false,

0 comments on commit 31d1a3f

Please sign in to comment.