mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: fix test-http2-socket-close.js
Fixes: https://github.com/nodejs/node/issues/54819 PR-URL: https://github.com/nodejs/node/pull/54900 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
parent
efbba60e5b
commit
c6f514c7ab
@ -30,8 +30,6 @@ test-runner-watch-mode-complex: PASS, FLAKY
|
||||
test-async-context-frame: PASS, FLAKY
|
||||
# https://github.com/nodejs/node/issues/54534
|
||||
test-runner-run-watch: PASS, FLAKY
|
||||
# https://github.com/nodejs/node/issues/54819
|
||||
test-http2-socket-close: PASS, FLAKY
|
||||
|
||||
# Windows on ARM
|
||||
[$system==win32 && $arch==arm64]
|
||||
|
@ -42,6 +42,7 @@ netServer.listen(0, common.mustCall(() => {
|
||||
rejectUnauthorized: false
|
||||
});
|
||||
|
||||
proxyClient.on('error', () => {});
|
||||
proxyClient.on('close', common.mustCall(() => {
|
||||
netServer.close();
|
||||
}));
|
||||
@ -51,6 +52,7 @@ netServer.listen(0, common.mustCall(() => {
|
||||
':path': '/'
|
||||
});
|
||||
|
||||
req.on('error', () => {});
|
||||
req.on('response', common.mustCall((response) => {
|
||||
assert.strictEqual(response[':status'], 200);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user