Skip to content

Commit 56812c8

Browse files
vieiraarturglpinca
authored andcommitted
test: use dynamic port in test-https-connect-address-family
Remove common.PORT from test-https-connect-address-family to eliminate possibility that a dynamic port used in another test will collide with common.PORT. PR-URL: #12915 Ref: #12376 Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 529e4f2 commit 56812c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ function runTest() {
1919
https.createServer({ ciphers }, common.mustCall(function(req, res) {
2020
this.close();
2121
res.end();
22-
})).listen(common.PORT, '::1', common.mustCall(function() {
22+
})).listen(0, '::1', common.mustCall(function() {
2323
const options = {
2424
host: 'localhost',
25-
port: common.PORT,
25+
port: this.address().port,
2626
family: 6,
2727
ciphers: ciphers,
2828
rejectUnauthorized: false,

0 commit comments

Comments
 (0)