Skip to content

Commit d31a411

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 d51c856 commit d31a411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ function runTest() {
1818
const ciphers = '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
const options = {
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)