Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e173ca1

Browse files
committedJun 14, 2020
fix tests
fix lint error
1 parent 8dedf1f commit e173ca1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

Diff for: ‎test/parallel/test-http2-invalidheaderfield.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ server.listen(0, common.mustCall(() => {
5656
});
5757

5858
const session4 = http2.connect(`http://localhost:${server.address().port}`);
59-
try {
59+
throws(() => {
6060
session4.request({ ':test': 123 });
61-
} catch (e) {
62-
strictEqual(e.code, 'ERR_HTTP2_INVALID_PSEUDOHEADER');
63-
session4.destroy();
64-
}
61+
}, {
62+
code: 'ERR_HTTP2_INVALID_PSEUDOHEADER'
63+
});
64+
session4.close();
6565
}));

0 commit comments

Comments
 (0)
Please sign in to comment.