mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
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:
1 parent
9e82fd26aa
commit
83410d6ac8
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user