fix: land SIGUSR1 orphan recovery regressions (#47719) (thanks @joeykrug)

This commit is contained in:
Peter Steinberger
2026-03-16 05:31:41 +00:00
parent 98f6ec50aa
commit 680eff63fb
7 changed files with 64 additions and 11 deletions

View File

@@ -190,8 +190,8 @@ describe("infra runtime", () => {
await vi.advanceTimersByTimeAsync(0);
expect(emitSpy).not.toHaveBeenCalledWith("SIGUSR1");
// Advance past the 90s max deferral wait
await vi.advanceTimersByTimeAsync(90_000);
// Advance past the 5-minute max deferral wait
await vi.advanceTimersByTimeAsync(300_000);
expect(emitSpy).toHaveBeenCalledWith("SIGUSR1");
} finally {
process.removeListener("SIGUSR1", handler);