test: loop compaction log output · openclaw/openclaw@7372336
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,11 +41,11 @@ function requireMockCallArg(
|
41 | 41 | } |
42 | 42 | |
43 | 43 | function expectLogIncludes(mock: { mock: { calls: unknown[][] } }, fragment: string) { |
44 | | -expect(mock.mock.calls.some((call) => String(call[0]).includes(fragment))).toBe(true); |
| 44 | +expect(mock.mock.calls.map((call) => String(call[0])).join("\n")).toContain(fragment); |
45 | 45 | } |
46 | 46 | |
47 | 47 | function expectLogExcludes(mock: { mock: { calls: unknown[][] } }, fragment: string) { |
48 | | -expect(mock.mock.calls.some((call) => String(call[0]).includes(fragment))).toBe(false); |
| 48 | +expect(mock.mock.calls.map((call) => String(call[0])).join("\n")).not.toContain(fragment); |
49 | 49 | } |
50 | 50 | |
51 | 51 | function expectRetryContinuesFromTranscript() { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。