Skip to content

Commit 63b06b5

Browse files
addaleaxBridgeAR
authored andcommitted
test: fix common.mustNotCall() usage in HTTP test
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>
1 parent 3d1853b commit 63b06b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sequential/test-http-max-http-headers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function test1() {
9494

9595
server.listen(0, common.mustCall(() => {
9696
const port = server.address().port;
97-
const client = http.get({ port: port }, common.mustNotCall(() => {}));
97+
const client = http.get({ port: port }, common.mustNotCall());
9898

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

0 commit comments

Comments
 (0)