test: fix common.mustNotCall()
usage in HTTP test
The argument to `common.mustNotCall()` is a message, not a function. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
447b3907c7
commit
585380d233
@ -94,7 +94,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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user