test: tighten btw diagnostic assertions · openclaw/openclaw@2ea4f79
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -773,7 +773,7 @@ describe("runBtwSideQuestion", () => {
|
773 | 773 | expect(buildSessionContextMock).toHaveBeenCalledWith([userEntry, assistantEntry]); |
774 | 774 | expect(result).toEqual({ text: MATH_ANSWER }); |
775 | 775 | expect(diagDebugMock).toHaveBeenCalledWith( |
776 | | -expect.stringContaining("btw snapshot leaf unavailable: sessionId=session-1"), |
| 776 | +"btw snapshot leaf unavailable: sessionId=session-1 leaf=assistant-gone", |
777 | 777 | ); |
778 | 778 | }); |
779 | 779 | |
@@ -792,9 +792,7 @@ describe("runBtwSideQuestion", () => {
|
792 | 792 | const result = await runMathSideQuestion(); |
793 | 793 | |
794 | 794 | expect(result).toEqual({ text: MATH_ANSWER }); |
795 | | -expect(diagDebugMock).not.toHaveBeenCalledWith( |
796 | | -expect.stringContaining("btw transcript persistence skipped"), |
797 | | -); |
| 795 | +expect(diagDebugMock).not.toHaveBeenCalled(); |
798 | 796 | }); |
799 | 797 | |
800 | 798 | it("excludes tool results from BTW context to avoid replaying raw tool output", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。