Skip to content

Commit 5542a72

Browse files
mkamakuraaddaleax
authored andcommitted
test: fix test-tls-connect-address-family
Use port 0 instead of common.PORT. PR-URL: #9573 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent 6105c91 commit 5542a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎test/parallel/test-tls-connect-address-family.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ function runTest(){
1818
constciphers='AECDH-NULL-SHA';
1919
tls.createServer({ ciphers },common.mustCall(function(){
2020
this.close();
21-
})).listen(common.PORT,'::1',common.mustCall(function(){
21+
})).listen(0,'::1',common.mustCall(function(){
2222
constoptions={
2323
host: 'localhost',
24-
port: common.PORT,
24+
port: this.address().port,
2525
family: 6,
2626
ciphers: ciphers,
2727
rejectUnauthorized: false,

0 commit comments

Comments
(0)