Skip to content

Commit 6881454

Browse files
Trottaddaleax
authored andcommitted
test: replace common.PORT with 0 in https renegotiation test
Repeated use of common.PORT was resulting in sporadic failures on some operating systems. PR-URL: #25599 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent d9a8113 commit 6881454

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/pummel/test-https-ci-reneg-attack.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ function test(next) {
6565
res.end('ok');
6666
});
6767

68-
server.listen(common.PORT, function() {
69-
const args = (`s_client -connect 127.0.0.1:${common.PORT}`).split(' ');
68+
server.listen(0, function() {
69+
const cmd = `s_client -connect 127.0.0.1:${server.address().port}`;
70+
const args = cmd.split(' ');
7071
const child = spawn(common.opensslCli, args);
7172

7273
child.stdout.resume();

0 commit comments

Comments
 (0)