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 addaleax committed Dec 5, 2016
1 parent d51c856 commit d31a411
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 @@ -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,
Expand Down

0 comments on commit d31a411

Please sign in to comment.