From 0909ef0d0cc96b12b899897b2e0739ffe16fc9b0 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 16 Nov 2026 10:40:38 +0100 Subject: [PATCH] test: ignore `ECONNRESET` in `test-gc-net-timeout` Signed-off-by: Antoine du Hamel --- test/parallel/test-gc-net-timeout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-gc-net-timeout.js b/test/parallel/test-gc-net-timeout.js index 0fc93bfc62c2..5346b3a6a179 100644 --- a/test/parallel/test-gc-net-timeout.js +++ b/test/parallel/test-gc-net-timeout.js @@ -41,6 +41,9 @@ function getAll() { const req = net.connect(server.address().port); req.resume(); + req.on('error', (err) => { + if (err?.code !== 'ECONNRESET') throw err; + }); req.setTimeout(10, function() { req.destroy(); done++;