Skip to content
Myr

Fix `cleanup` option test (#601)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent a85766d · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:test/kill.js+3 added-1 removed
165 unmodified lines
166// - `options.cleanup` with SIGKILL is a noop, since it cannot be handled167const exitIfWindows = process.platform === 'win32';168test('spawnAndKill SIGTERM', spawnAndKill, ['SIGTERM', false, false, exitIfWindows]);169test('spawnAndKill SIGKILL', spawnAndKill, ['SIGKILL', false, false, exitIfWindows]);170// The `cleanup` option can introduce a race condition in this test171// This is especially true when run concurrently, so we use `test.serial()`170test('spawnAndKill cleanup SIGTERM', spawnAndKill, ['SIGTERM', true, false, true]);172test.serial('spawnAndKill cleanup SIGTERM', spawnAndKill, ['SIGTERM', true, false, true]);173test('spawnAndKill cleanup SIGKILL', spawnAndKill, ['SIGKILL', true, false, exitIfWindows]);174test('spawnAndKill detached SIGTERM', spawnAndKill, ['SIGTERM', false, true, false]);175test('spawnAndKill detached SIGKILL', spawnAndKill, ['SIGKILL', false, true, false]);176test('spawnAndKill cleanup detached SIGTERM', spawnAndKill, ['SIGTERM', true, true, false]);
136 unmodified lines