Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: lint
  • Loading branch information
rexagod committed May 10, 2020
commit 502c54963d15552b95457dad209ad5420bc4a432
6 changes: 3 additions & 3 deletions test/parallel/test-http2-invalidheaderfields-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const server1 = http2.createServer();

server1.listen(0, common.mustCall(() => {
const session = http2.connect(`http://localhost:${server1.address().port}`);
// check for req headers
// Check for req headers
session.request({ 'no underscore': 123 });
session.on('error', common.mustCall((e) => {
assert.strictEqual(e.code, 'ERR_INVALID_HTTP_TOKEN');
Expand All @@ -34,7 +34,7 @@ server2.listen(0, common.mustCall(() => {

const server3 = http2.createServer(common.mustCall((req, res) => {
// check for writeHead
assert.throws(common.mustCall(()=>{
assert.throws(common.mustCall(() => {
res.writeHead(200, {
'an invalid header': 123
});
Expand All @@ -52,4 +52,4 @@ server3.listen(0, common.mustCall(() => {
server3.close();
session.close();
}));
}));
}));