From bbd0f52f5ff2d054f84a607c360e82a1f4a2f1ea Mon Sep 17 00:00:00 2001 From: Roo Code Date: Fri, 30 Jan 2026 03:08:37 +0000 Subject: [PATCH] fix: update openai-codex-native-tool-calls test to use profile-scoped OAuth mocks --- .../__tests__/openai-codex-native-tool-calls.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/providers/__tests__/openai-codex-native-tool-calls.spec.ts b/src/api/providers/__tests__/openai-codex-native-tool-calls.spec.ts index 608f639ed4..ff042bef8f 100644 --- a/src/api/providers/__tests__/openai-codex-native-tool-calls.spec.ts +++ b/src/api/providers/__tests__/openai-codex-native-tool-calls.spec.ts @@ -24,8 +24,8 @@ describe("OpenAiCodexHandler native tool calls", () => { }) it("yields tool_call_partial chunks when API returns function_call-only response", async () => { - vi.spyOn(openAiCodexOAuthManager, "getAccessToken").mockResolvedValue("test-token") - vi.spyOn(openAiCodexOAuthManager, "getAccountId").mockResolvedValue("acct_test") + vi.spyOn(openAiCodexOAuthManager, "getAccessTokenForProfile").mockResolvedValue("test-token") + vi.spyOn(openAiCodexOAuthManager, "getAccountIdForProfile").mockResolvedValue("acct_test") // Mock OpenAI SDK streaming (preferred path). ;(handler as any).client = {