Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d31a411

Browse filesBrowse 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 <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>
1 parent d51c856 commit d31a411
Copy full SHA for d31a411

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-tls-connect-address-family.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.