mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 16:20:21 +00:00
fix: land SIGUSR1 orphan recovery regressions (#47719) (thanks @joeykrug)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user