Skip to content

Commit 8c6c0f9

Browse files
stefanmbrvagg
authored andcommitted
test: use port number from env in tls socket test
Tests normally use common.PORT to allow the user to select which port number to listen on. Hardcoding the port number will cause parallel instances of the test to fail. PR-URL: #3557 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent 5e76587 commit 8c6c0f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-tls-async-cb-after-socket-end.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ server.on('resumeSession', function(id, cb) {
3636
next();
3737
});
3838

39-
server.listen(1443, function() {
39+
server.listen(common.PORT, function() {
4040
var clientOpts = {
41-
port: 1443,
41+
port: common.PORT,
4242
rejectUnauthorized: false,
4343
session: false
4444
};

0 commit comments

Comments
 (0)