From c6f514c7ab72083bc96108afd776bc23c836844d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20A=C3=A7acak?= <110401522+huseyinacacak-janea@users.noreply.github.com> Date: Sat, 14 Sep 2024 19:01:56 +0300 Subject: [PATCH] test: fix test-http2-socket-close.js Fixes: https://github.com/nodejs/node/issues/54819 PR-URL: https://github.com/nodejs/node/pull/54900 Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau --- test/parallel/parallel.status | 2 -- test/parallel/test-http2-socket-close.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status index f47a42b7a4ccc2..43db3e8926c890 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -30,8 +30,6 @@ test-runner-watch-mode-complex: PASS, FLAKY test-async-context-frame: PASS, FLAKY # https://github.com/nodejs/node/issues/54534 test-runner-run-watch: PASS, FLAKY -# https://github.com/nodejs/node/issues/54819 -test-http2-socket-close: PASS, FLAKY # Windows on ARM [$system==win32 && $arch==arm64] 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);