-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Refactor out spawnPwd #22522
test: Refactor out spawnPwd #22522
Conversation
/CC @nodejs/testing |
Another reason I like this change is it adds an explicit P.S. I'm aware of the lint. Looking for some buy-in before I do a second pass. |
(signed off to +1 the idea, looks like there are a few nits to fix tho) |
common.spawnPwd({ stdio: ['pipe', 'pipe', 'pipe', 'ipc', 'ipc'] }); | ||
}, { code: 'ERR_IPC_ONE_PIPE', type: Error }); | ||
child.on('exit', common.mustCall(function(c) { | ||
assert.strictEqual(0, c); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We typically spell out code
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
(also the actual, and expected args were swapped)
4103318
to
b35a046
Compare
* extract the gist into common.pwdCommand * Merge test-child-process-buffering.js into test-child-process-stdio.js PR-URL: nodejs#22522 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
b35a046
to
8569f4a
Compare
landed in 8569f4a |
* extract the gist into common.pwdCommand * Merge test-child-process-buffering.js into test-child-process-stdio.js PR-URL: #22522 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
* extract the gist into common.pwdCommand * Merge test-child-process-buffering.js into test-child-process-stdio.js PR-URL: #22522 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
* extract the gist into common.pwdCommand * Merge test-child-process-buffering.js into test-child-process-stdio.js PR-URL: #22522 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Further work on
common/index.js
.common.pwdCommand
test-child-process-buffering.js
intotest-child-process-stdio.js
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes