Skip to content

Commit

Permalink
test: fix common.mustNotCall() usage in HTTP test
Browse files Browse the repository at this point in the history
The argument to `common.mustNotCall()` is a message, not a function.

PR-URL: #24750
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
addaleax authored and BethGriggs committed Feb 12, 2019
1 parent 7bd7328 commit 546fc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sequential/test-http-max-http-headers.js
Expand Up @@ -96,7 +96,7 @@ function test1() {

server.listen(0, common.mustCall(() => {
const port = server.address().port;
const client = http.get({ port: port }, common.mustNotCall(() => {}));
const client = http.get({ port: port }, common.mustNotCall());

client.on('error', common.mustCall((err) => {
assert.strictEqual(err.code, 'HPE_HEADER_OVERFLOW');
Expand Down

0 comments on commit 546fc68

Please sign in to comment.