From d2586977f06e7c73dcd9bdae97383f66280beca0 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Tue, 26 Apr 2022 00:34:52 +0900 Subject: [PATCH] fix: add client.on('error') and drop :status --- .../parallel/test-http2-options-max-headers-exceeds-nghttp2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-http2-options-max-headers-exceeds-nghttp2.js b/test/parallel/test-http2-options-max-headers-exceeds-nghttp2.js index ce713b314683d5..df3aefff11e7ad 100644 --- a/test/parallel/test-http2-options-max-headers-exceeds-nghttp2.js +++ b/test/parallel/test-http2-options-max-headers-exceeds-nghttp2.js @@ -65,7 +65,6 @@ server.listen(0, common.mustCall(() => { 'stream', common.mustCall((stream) => { stream.additionalHeaders({ - ':status': 102, // Greater than 65536 bytes 'test-header': 'A'.repeat(90000), }); @@ -89,6 +88,8 @@ server.listen(0, common.mustCall(() => { 0, common.mustCall(() => { const client = h2.connect(`http://localhost:${server.address().port}`); + client.on('error', common.mustNotCall()); + const req = client.request(); req.on('response', common.mustNotCall()); req.on('error', common.mustNotCall());