Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit bbd0f52

Browse files
committed
fix: update openai-codex-native-tool-calls test to use profile-scoped OAuth mocks
1 parent a0d5470 commit bbd0f52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/providers/__tests__/openai-codex-native-tool-calls.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ describe("OpenAiCodexHandler native tool calls", () => {
2424
})
2525

2626
it("yields tool_call_partial chunks when API returns function_call-only response", async () => {
27-
vi.spyOn(openAiCodexOAuthManager, "getAccessToken").mockResolvedValue("test-token")
28-
vi.spyOn(openAiCodexOAuthManager, "getAccountId").mockResolvedValue("acct_test")
27+
vi.spyOn(openAiCodexOAuthManager, "getAccessTokenForProfile").mockResolvedValue("test-token")
28+
vi.spyOn(openAiCodexOAuthManager, "getAccountIdForProfile").mockResolvedValue("acct_test")
2929

3030
// Mock OpenAI SDK streaming (preferred path).
3131
;(handler as any).client = {

0 commit comments

Comments
 (0)