test: tighten attempt cache ttl assertion · openclaw/openclaw@b766b8e
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner/run
| Original file line number | Diff line number | Diff line change |
|---|
@@ -61,13 +61,10 @@ describe("runEmbeddedAttempt cache-ttl tracking after compaction", () => {
|
61 | 61 | }); |
62 | 62 | |
63 | 63 | expect(appended).toBe(true); |
64 | | -expect(sessionManager.appendCustomEntry).toHaveBeenCalledWith( |
65 | | -ATTEMPT_CACHE_TTL_CUSTOM_TYPE, |
66 | | -expect.objectContaining({ |
67 | | -provider: "anthropic", |
68 | | -modelId: "claude-sonnet-4-20250514", |
69 | | -timestamp: 123, |
70 | | -}), |
71 | | -); |
| 64 | +expect(sessionManager.appendCustomEntry).toHaveBeenCalledWith(ATTEMPT_CACHE_TTL_CUSTOM_TYPE, { |
| 65 | +timestamp: 123, |
| 66 | +provider: "anthropic", |
| 67 | +modelId: "claude-sonnet-4-20250514", |
| 68 | +}); |
72 | 69 | }); |
73 | 70 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。