test: clarify delivery recovery retry assertion · openclaw/openclaw@0da9f7e
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -655,7 +655,8 @@ describe("delivery-queue recovery", () => {
|
655 | 655 | |
656 | 656 | const remaining = await loadPendingDeliveries(tmpDir()); |
657 | 657 | expect(remaining).toHaveLength(3); |
658 | | -expect(remaining.every((entry) => entry.retryCount === 1)).toBe(true); |
| 658 | +const entriesWithUnexpectedRetryCount = remaining.filter((entry) => entry.retryCount !== 1); |
| 659 | +expect(entriesWithUnexpectedRetryCount).toEqual([]); |
659 | 660 | expect(log.warn).toHaveBeenCalledWith(expect.stringContaining("deferred to next startup")); |
660 | 661 | }); |
661 | 662 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。