mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-22 02:15:26 -06:00
f95b5a0062
The retryable-send and retryable-history tests asserted the resend side effect immediately after `vi.advanceTimersByTimeAsync(100)`. Sinon's async tick yields exactly one real macrotask after firing the last timer, and the retry chain (`void scheduleStoredChatOutboxDrain` -> `chat.history` -> `chat.send`) consumes exactly that one boundary, so the assertions had zero slack and flaked under CI contention. Wait for the outcome with `waitForFast` instead, and fold the outbox-empty assertion into the wait since retirement lands after the send call.