test: count minimax vlm requests · openclaw/openclaw@1a1b6d8
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -40,7 +40,7 @@ describe("minimaxUnderstandImage apiKey normalization", () => {
|
40 | 40 | }); |
41 | 41 | |
42 | 42 | expect(text).toBe("ok"); |
43 | | -expect(fetchSpy).toHaveBeenCalled(); |
| 43 | +expect(fetchSpy).toHaveBeenCalledOnce(); |
44 | 44 | } |
45 | 45 | |
46 | 46 | it("strips embedded CR/LF before sending Authorization header", async () => { |
@@ -95,6 +95,7 @@ describe("minimaxUnderstandImage apiKey normalization", () => {
|
95 | 95 | }), |
96 | 96 | ).resolves.toBe("ok"); |
97 | 97 | |
| 98 | +expect(timeoutSpy).toHaveBeenCalledOnce(); |
98 | 99 | expect(timeoutSpy).toHaveBeenCalledWith(180_000); |
99 | 100 | }); |
100 | 101 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。