Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: rename spawnAndKill method
  • Loading branch information
mete0rfish committed Sep 1, 2025
commit 46e4fcc783c3ccafe58e44989b217bdf5875f8ef
6 changes: 3 additions & 3 deletions test/parallel/test-runner-exit-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function runAndKill(file) {
assert.strictEqual(code, 1);
}

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

(async () => {
await spawnAndKillProgrammatic(
await spawnAndKill(
[__filename, 'child', 'run-signal-false'],
{ signal: 'SIGINT', code: null },
);
await spawnAndKillProgrammatic(
await spawnAndKill(
[__filename, 'child', 'run-signal-true'],
{ signal: null, code: 0 },
);
Expand Down