Skip to content

Commit c463765

Browse files
authored
test: ignore ECONNRESET in test-gc-net-timeout
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #67514 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 20a93ab commit c463765

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎test/parallel/test-gc-net-timeout.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function getAll() {
4141

4242
const req = net.connect(server.address().port);
4343
req.resume();
44+
req.on('error', (err) => {
45+
if (err?.code !== 'ECONNRESET') throw err;
46+
});
4447
req.setTimeout(10, function() {
4548
req.destroy();
4649
done++;

0 commit comments

Comments
 (0)