Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
fix lint error
  • Loading branch information
rexagod committed Jun 14, 2020
1 parent 8dedf1f commit e173ca1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-http2-invalidheaderfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ server.listen(0, common.mustCall(() => {
});

const session4 = http2.connect(`http://localhost:${server.address().port}`);
try {
throws(() => {
session4.request({ ':test': 123 });
} catch (e) {
strictEqual(e.code, 'ERR_HTTP2_INVALID_PSEUDOHEADER');
session4.destroy();
}
}, {
code: 'ERR_HTTP2_INVALID_PSEUDOHEADER'
});
session4.close();
}));

0 comments on commit e173ca1

Please sign in to comment.