Skip to content

Commit a0ef05b

Browse files
committed
test: rename spawnAndKill method
1 parent 8c34f7a commit a0ef05b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-runner-exit-code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function runAndKill(file) {
2525
assert.strictEqual(code, 1);
2626
}
2727

28-
async function spawnAndKillProgrammatic(childArgs, { code: expectedCode, signal: expectedSignal }) {
28+
async function spawnAndKill(childArgs, { code: expectedCode, signal: expectedSignal }) {
2929
if (common.isWindows) {
3030
common.printSkipMessage('signals are not supported on windows');
3131
return;
@@ -88,11 +88,11 @@ if (process.argv[2] === 'child') {
8888
runAndKill(fixtures.path('test-runner', 'never_ending_async.js')).then(common.mustCall());
8989

9090
(async () => {
91-
await spawnAndKillProgrammatic(
91+
await spawnAndKill(
9292
[__filename, 'child', 'run-signal-false'],
9393
{ signal: 'SIGINT', code: null },
9494
);
95-
await spawnAndKillProgrammatic(
95+
await spawnAndKill(
9696
[__filename, 'child', 'run-signal-true'],
9797
{ signal: null, code: 0 },
9898
);

0 commit comments

Comments
 (0)