From 451cc5115c2365c20ba707693496f55a6df1e04b Mon Sep 17 00:00:00 2001 From: iamtoruk Date: Wed, 2 Sep 2026 06:27:46 -0700 Subject: [PATCH] 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. --- app/electron/cli.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/electron/cli.test.ts b/app/electron/cli.test.ts index 641f2bec..71556b6c 100644 --- a/app/electron/cli.test.ts +++ b/app/electron/cli.test.ts @@ -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')