mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-12-03 12:32:02 +00:00
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:
parent
076dc1d960
commit
451cc5115c
1 changed files with 4 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue