mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: remove common.PORT from test-tls-server-large-request
Switch test-tls-server-large-request from common.PORT to a port assigned by the operating system. PR-URL: https://github.com/nodejs/node/pull/31749 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
@@ -59,9 +59,9 @@ const server = tls.Server(options, common.mustCall(function(socket) {
|
||||
socket.pipe(mediator);
|
||||
}));
|
||||
|
||||
server.listen(common.PORT, common.mustCall(function() {
|
||||
server.listen(0, common.mustCall(() => {
|
||||
const client1 = tls.connect({
|
||||
port: common.PORT,
|
||||
port: server.address().port,
|
||||
rejectUnauthorized: false
|
||||
}, common.mustCall(function() {
|
||||
client1.end(request);
|
||||
|
||||
Reference in New Issue
Block a user