mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 02:31:22 +00:00
perf(test): batch channel health monitor timer advances
This commit is contained in:
@@ -244,9 +244,7 @@ describe("channel-health-monitor", () => {
|
||||
cooldownCycles: 1,
|
||||
maxRestartsPerHour: 3,
|
||||
});
|
||||
await vi.advanceTimersByTimeAsync(1_500);
|
||||
await vi.advanceTimersByTimeAsync(2_000);
|
||||
await vi.advanceTimersByTimeAsync(2_000);
|
||||
await vi.advanceTimersByTimeAsync(5_500);
|
||||
expect(manager.startChannel).toHaveBeenCalledTimes(3);
|
||||
await vi.advanceTimersByTimeAsync(2_000);
|
||||
expect(manager.startChannel).toHaveBeenCalledTimes(3);
|
||||
|
||||
Reference in New Issue
Block a user