test(agents): fix compatible retry fixture

This commit is contained in:
Peter Steinberger
2026-04-27 11:44:04 +01:00
parent 769994eb04
commit f487ed160e

View File

@@ -1,4 +1,4 @@
import { beforeAll, beforeEach, describe, expect, it } from "vitest";
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../../config/config.js";
import { makeAttemptResult } from "./run.overflow-compaction.fixture.js";
import {
@@ -654,7 +654,7 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {
},
error: null,
authStorage: {
setRuntimeApiKey: () => undefined,
setRuntimeApiKey: vi.fn(),
},
modelRegistry: {},
});