Skip to content

Commit 6a04dbe

Browse files
committed
[squash] hack around error in test
1 parent bb4e94a commit 6a04dbe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/parallel/test-http2-respond-with-file-connection-abort.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ server.listen(0, common.mustCall(() => {
2828
}));
2929
req.end();
3030
}));
31+
32+
// TODO(addaleax): This is a *hack*. HTTP/2 needs to have a proper way of
33+
// dealing with this kind of issue.
34+
process.once('uncaughtException', (err) => {
35+
if (err.code === 'ECONNRESET') return;
36+
throw err;
37+
});

0 commit comments

Comments
 (0)