test(app): give the orphan-reaping tests room too

They start real children and then wait for the OS to report them gone. Under the
whole suite, fifty files at once, that wait outran the five-second default often
enough to fail on a busy machine while nothing was wrong. Same reason and same
headroom as the resident-serve block.
This commit is contained in:
iamtoruk 2026-09-02 06:27:46 -07:00
parent 076dc1d960
commit 451cc5115c

View file

@ -593,7 +593,10 @@ describe('graceful kill (SIGTERM, then SIGKILL after the grace)', () => {
})
})
describe('orphan serve reaping', () => {
// These start real children and then wait for the OS to report them gone, which is the same
// reason the resident-serve block gets room: the assertions are about which process survives,
// never about how quickly a busy machine gets round to ending it.
describe('orphan serve reaping', { timeout: 30_000 }, () => {
/** A long-lived stand-in for an orphaned `codeburn serve --stdio` child. */
function orphanServe(): { pid: number; pidFile: string } {
const bin = join(dir, 'codeburn')