summaryrefslogtreecommitdiff
path: root/test/abort
diff options
context:
space:
mode:
authorJackson Chui <14085209+haiXchuus@users.noreply.github.com>2018-11-06 20:23:08 -0800
committerRich Trott <rtrott@gmail.com>2018-11-08 21:41:29 -0800
commit83410d6ac84e4e85cc4f385461c4f0716fd1f836 (patch)
treee4ff16d2d080f6dfa0046fcbe507ebd7d45c2dc0 /test/abort
parent9e82fd26aaa87cbae8af8ae007a0ceb082ad10ad (diff)
downloadandroid-node-v8-83410d6ac84e4e85cc4f385461c4f0716fd1f836.tar.gz
android-node-v8-83410d6ac84e4e85cc4f385461c4f0716fd1f836.tar.bz2
android-node-v8-83410d6ac84e4e85cc4f385461c4f0716fd1f836.zip
test: removed extraneous argument 's'
PR-URL: https://github.com/nodejs/node/pull/24213 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/abort')
-rw-r--r--test/abort/test-http-parser-consume.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/abort/test-http-parser-consume.js b/test/abort/test-http-parser-consume.js
index 673e04cfa3..13dc93874a 100644
--- a/test/abort/test-http-parser-consume.js
+++ b/test/abort/test-http-parser-consume.js
@@ -7,7 +7,7 @@ const { spawn } = require('child_process');
if (process.argv[2] === 'child') {
// sub-process
const server = createServer(common.mustCall((_, res) => res.end('h')));
- server.listen(0, common.mustCall((s) => {
+ server.listen(0, common.mustCall(() => {
const rr = get({ port: server.address().port }, common.mustCall(() => {
// This bad input (0) should abort the parser and the process
rr.parser.consume(0);