test: tighten tool schema diagnostic assertion · openclaw/openclaw@36da8c1
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -48,11 +48,16 @@ describe("tool schema runtime diagnostics", () => {
|
48 | 48 | expect(mocks.log.warn).toHaveBeenCalledTimes(1); |
49 | 49 | expect(mocks.log.warn).toHaveBeenCalledWith( |
50 | 50 | "provider tool schema diagnostics: 2 tools for example: alpha (2 violations), beta (1 violation)", |
51 | | -expect.objectContaining({ |
| 51 | +{ |
52 | 52 | provider: "example", |
| 53 | +toolCount: 2, |
53 | 54 | diagnosticCount: 2, |
54 | 55 | tools: ["0:alpha", "1:beta"], |
55 | | -}), |
| 56 | +diagnostics: [ |
| 57 | +{ index: 0, tool: "alpha", violations: ["one", "two"], violationCount: 2 }, |
| 58 | +{ index: 1, tool: "beta", violations: ["one"], violationCount: 1 }, |
| 59 | +], |
| 60 | +}, |
56 | 61 | ); |
57 | 62 | }); |
58 | 63 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。