Skip to content

Commit

Permalink
test: fix test-tls-connect-address-family
Browse files Browse the repository at this point in the history
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 MylesBorins committed Dec 21, 2016
1 parent 420e7f1 commit 0662429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-tls-connect-address-family.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,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,
Expand Down

0 comments on commit 0662429

Please sign in to comment.