test(subprocess): cover settled scope waits
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user