Skip to content

Commit

Permalink
test: fix test-http2-socket-close.js
Browse files Browse the repository at this point in the history
Fixes: #54819
PR-URL: #54900
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
huseyinacacak-janea authored and targos committed Oct 2, 2024
1 parent c1b1fe1 commit d82df74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-http2-socket-close.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ netServer.listen(0, common.mustCall(() => {
rejectUnauthorized: false
});

proxyClient.on('error', () => {});
proxyClient.on('close', common.mustCall(() => {
netServer.close();
}));
Expand All @@ -51,6 +52,7 @@ netServer.listen(0, common.mustCall(() => {
':path': '/'
});

req.on('error', () => {});
req.on('response', common.mustCall((response) => {
assert.strictEqual(response[':status'], 200);

Expand Down

0 comments on commit d82df74

Please sign in to comment.