mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: discard data received by client
This test was timing out after update to OpenSSL-1.1.1e. PR-URL: https://github.com/nodejs/node/pull/32328 Fixes: https://github.com/nodejs/node/issues/32210 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
ec144d5628
commit
3d0f2257be
1 file changed
+1
@@ -37,6 +37,7 @@ const timeout = setTimeout(() => cleanUp('Timeouted'), 5000);
|
||||
|
||||
function waitForPort(port, cb) {
|
||||
const socket = net.connect(common.PORT, () => {
|
||||
socket.on('data', () => {});
|
||||
socket.end();
|
||||
socket.on('end', cb);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user