Skip to content

Commit 0662429

Browse files
mkamakuraMylesBorins
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 420e7f1 commit 0662429

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
@@ -14,10 +14,10 @@ function runTest() {
1414
const ciphers = 'AECDH-NULL-SHA';
1515
tls.createServer({ ciphers }, common.mustCall(function() {
1616
this.close();
17-
})).listen(common.PORT, '::1', common.mustCall(function() {
17+
})).listen(0, '::1', common.mustCall(function() {
1818
const options = {
1919
host: 'localhost',
20-
port: common.PORT,
20+
port: this.address().port,
2121
family: 6,
2222
ciphers: ciphers,
2323
rejectUnauthorized: false,

0 commit comments

Comments
 (0)