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 <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
  • Loading branch information
huseyinacacak-janea authored and targos committed Sep 22, 2024
1 parent 4c386e2 commit 819c2d1
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 819c2d1

Please sign in to comment.