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:
parent
9e82fd26aa
commit
83410d6ac8
@ -7,7 +7,7 @@ const { spawn } = require('child_process');
|
|||||||
if (process.argv[2] === 'child') {
|
if (process.argv[2] === 'child') {
|
||||||
// sub-process
|
// sub-process
|
||||||
const server = createServer(common.mustCall((_, res) => res.end('h')));
|
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(() => {
|
const rr = get({ port: server.address().port }, common.mustCall(() => {
|
||||||
// This bad input (0) should abort the parser and the process
|
// This bad input (0) should abort the parser and the process
|
||||||
rr.parser.consume(0);
|
rr.parser.consume(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user