From f4bd01c816755628098ab007efaa80fd8013d650 Mon Sep 17 00:00:00 2001 From: Hassaan Pasha Date: Thu, 19 Mar 2020 12:35:34 +0500 Subject: [PATCH] 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 Reviewed-By: James M Snell --- test/sequential/test-tls-psk-client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/sequential/test-tls-psk-client.js b/test/sequential/test-tls-psk-client.js index 7c9fb939674dba..af9629dab9dc23 100644 --- a/test/sequential/test-tls-psk-client.js +++ b/test/sequential/test-tls-psk-client.js @@ -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); });