diff --git a/test/parallel/test-http2-socket-close.js b/test/parallel/test-http2-socket-close.js index 02db77bcf8480c..d88c10ae18e662 100644 --- a/test/parallel/test-http2-socket-close.js +++ b/test/parallel/test-http2-socket-close.js @@ -42,6 +42,7 @@ netServer.listen(0, common.mustCall(() => { rejectUnauthorized: false }); + proxyClient.on('error', () => {}); proxyClient.on('close', common.mustCall(() => { netServer.close(); })); @@ -51,6 +52,7 @@ netServer.listen(0, common.mustCall(() => { ':path': '/' }); + req.on('error', () => {}); req.on('response', common.mustCall((response) => { assert.strictEqual(response[':status'], 200);