test(subprocess): cover settled scope waits

This commit is contained in:
pku-xht committed 2026-08-20 18:58:36 +08:00
1 parent 700812811e
commit 1ada79af81
1 file changed
+1
@@ -65,6 +65,7 @@ describe('Linux systemd scope adapter', () => {
})
await expect(launch.direct).resolves.toEqual({ exitCode: 9, signal: null })
await expect(launch.owner.waitForExit()).resolves.toBe(true)
await expect(launch.owner.waitForExit()).resolves.toBe(true)
const callsBeforeStaleSignal = runSyncMock.mock.calls.length
launch.owner.signal('SIGKILL')
expect(runSyncMock).toHaveBeenCalledTimes(callsBeforeStaleSignal)