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:
Hassaan Pasha authored and Shelley Vohr committed 2020-03-30 11:00:31 -07:00
1 parent 260bd810e9
commit f4bd01c816
1 file changed
+1
+1
View File
@@ -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);
});