summaryrefslogtreecommitdiff
path: root/test/sequential
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-11-30 14:56:11 +0100
committerRich Trott <rtrott@gmail.com>2018-12-04 11:14:22 -0800
commit585380d2333e95763a9e8adea57c272297b15e8b (patch)
tree2f0a9cb2ef7fb863a7a43a3b6cc2b5fc6b73c898 /test/sequential
parent447b3907c7b19bf53236538cb53968a7c2aca4b2 (diff)
downloadandroid-node-v8-585380d2333e95763a9e8adea57c272297b15e8b.tar.gz
android-node-v8-585380d2333e95763a9e8adea57c272297b15e8b.tar.bz2
android-node-v8-585380d2333e95763a9e8adea57c272297b15e8b.zip
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>
Diffstat (limited to 'test/sequential')
-rw-r--r--test/sequential/test-http-max-http-headers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-http-max-http-headers.js b/test/sequential/test-http-max-http-headers.js
index 5ca27a0d17..fad7f7d1d6 100644
--- a/test/sequential/test-http-max-http-headers.js
+++ b/test/sequential/test-http-max-http-headers.js
@@ -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');