mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 15:35:03 +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,
|
cooldownCycles: 1,
|
||||||
maxRestartsPerHour: 3,
|
maxRestartsPerHour: 3,
|
||||||
});
|
});
|
||||||
await vi.advanceTimersByTimeAsync(1_500);
|
await vi.advanceTimersByTimeAsync(5_500);
|
||||||
await vi.advanceTimersByTimeAsync(2_000);
|
|
||||||
await vi.advanceTimersByTimeAsync(2_000);
|
|
||||||
expect(manager.startChannel).toHaveBeenCalledTimes(3);
|
expect(manager.startChannel).toHaveBeenCalledTimes(3);
|
||||||
await vi.advanceTimersByTimeAsync(2_000);
|
await vi.advanceTimersByTimeAsync(2_000);
|
||||||
expect(manager.startChannel).toHaveBeenCalledTimes(3);
|
expect(manager.startChannel).toHaveBeenCalledTimes(3);
|
||||||
|
|||||||
Reference in New Issue
Block a user