Skip to content

Commit 5d48543

Browse files
huseyinacacak-janeatargos
authored andcommitted
test: fix test-http2-socket-close.js
Fixes: #54819 PR-URL: #54900 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent d285fc1 commit 5d48543

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-http2-socket-close.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ netServer.listen(0, common.mustCall(() => {
4242
rejectUnauthorized: false
4343
});
4444

45+
proxyClient.on('error', () => {});
4546
proxyClient.on('close', common.mustCall(() => {
4647
netServer.close();
4748
}));
@@ -51,6 +52,7 @@ netServer.listen(0, common.mustCall(() => {
5152
':path': '/'
5253
});
5354

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

0 commit comments

Comments
 (0)