MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / expectKilled

Function expectKilled

__tests__/liveness-watchdog.test.ts:89–91  ·  view source on GitHub ↗
(r: { code: number | null; signal: NodeJS.Signals | 'TIMEOUT' | null })

Source from the content-addressed store, hash-verified

87 // signal=null with a non-zero exit code. Either is a kill; the synthetic
88 // 'TIMEOUT' (the watchdog never fired) is the failure we're guarding against.
89 function expectKilled(r: { code: number | null; signal: NodeJS.Signals | 'TIMEOUT' | null }): void {
90 expect(r.signal === 'SIGKILL' || (r.signal === null && r.code !== 0 && r.code !== null)).toBe(true);
91 }
92
93 it('SIGKILLs a process whose main thread wedges in a sync loop', async () => {
94 const r = await runChild(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected