test(agents): fix compatible retry fixture · openclaw/openclaw@f487ed1
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { beforeAll, beforeEach, describe, expect, it } from "vitest"; |
| 1 | +import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 2 | import type { OpenClawConfig } from "../../config/config.js"; |
3 | 3 | import { makeAttemptResult } from "./run.overflow-compaction.fixture.js"; |
4 | 4 | import { |
@@ -654,7 +654,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {
|
654 | 654 | }, |
655 | 655 | error: null, |
656 | 656 | authStorage: { |
657 | | -setRuntimeApiKey: () => undefined, |
| 657 | +setRuntimeApiKey: vi.fn(), |
658 | 658 | }, |
659 | 659 | modelRegistry: {}, |
660 | 660 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。