test: record api error fingerprints · openclaw/openclaw@ac9732c
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -441,8 +441,9 @@ describe("raw API error payload helpers", () => {
|
441 | 441 | 'Ollama API error: {"type":"error","error":{"type":"server_error","message":"Boom"},"request_id":"req_123"}'; |
442 | 442 | |
443 | 443 | expect(isRawApiErrorPayload(raw)).toBe(true); |
444 | | -expect(getApiErrorPayloadFingerprint(raw)).toContain("server_error"); |
445 | | -expect(getApiErrorPayloadFingerprint(raw)).toContain("req_123"); |
| 444 | +expect(getApiErrorPayloadFingerprint(raw)).toBe( |
| 445 | +'{"error":{"message":"Boom","type":"server_error"},"request_id":"req_123","type":"error"}', |
| 446 | +); |
446 | 447 | }); |
447 | 448 | |
448 | 449 | it("recognizes flat JSON payloads with string error code and message (#74079)", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。