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); });