Skip to content

Commit d258697

Browse files
committed
fix: add client.on('error') and drop :status
1 parent eda399a commit d258697

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-http2-options-max-headers-exceeds-nghttp2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ server.listen(0, common.mustCall(() => {
6565
'stream',
6666
common.mustCall((stream) => {
6767
stream.additionalHeaders({
68-
':status': 102,
6968
// Greater than 65536 bytes
7069
'test-header': 'A'.repeat(90000),
7170
});
@@ -89,6 +88,8 @@ server.listen(0, common.mustCall(() => {
8988
0,
9089
common.mustCall(() => {
9190
const client = h2.connect(`http://localhost:${server.address().port}`);
91+
client.on('error', common.mustNotCall());
92+
9293
const req = client.request();
9394
req.on('response', common.mustNotCall());
9495
req.on('error', common.mustNotCall());

0 commit comments

Comments
 (0)