Skip to content

Commit

Permalink
fix: add client.on('error') and drop :status
Browse files Browse the repository at this point in the history
  • Loading branch information
daeyeon committed Apr 25, 2022
1 parent eda399a commit d258697
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand All @@ -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());
Expand Down

0 comments on commit d258697

Please sign in to comment.