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>
This commit is contained in:
Jackson Chui 2018-11-06 20:23:08 -08:00 committed by Myles Borins
parent 90f98905f1
commit fc84ccd0f0
No known key found for this signature in database
GPG Key ID: 933B01F40B5CA946

View File

@ -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);