Commit c4637654780 for nodejs
commit c4637654780f8905aa3a756b9b37a324c329f26d
Author: Antoine du Hamel <duhamelantoine1995@gmail.com>
Date: Wed Nov 18 10:48:19 2026 +0100
test: ignore `ECONNRESET` in `test-gc-net-timeout`
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67514
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
diff --git a/test/parallel/test-gc-net-timeout.js b/test/parallel/test-gc-net-timeout.js
index 0fc93bfc62c..5346b3a6a17 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++;