Skip to content

Commit 5b3b551

Browse files
committed
Fix test
1 parent 061a422 commit 5b3b551

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/__tests__/CodexACPAgent/CodexAcpClient.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
141141
const mockFixture = createCodexMockTestFixture();
142142
const codexAcpAgent = mockFixture.getCodexAcpAgent();
143143

144-
const logoutSpy = vi.spyOn(codexAcpAgent, "unstable_logout").mockResolvedValue({});
144+
const logoutSpy = vi.spyOn(codexAcpAgent, "unstable_logout");
145145

146146
await expect(codexAcpAgent.extMethod("authentication/logout", {})).resolves.toEqual({});
147147
expect(logoutSpy).toHaveBeenCalledWith({});
@@ -564,7 +564,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
564564

565565
const sessionState: SessionState = createTestSessionState();
566566

567-
const logoutSpy = vi.spyOn(mockFixture.getCodexAcpClient(), "logout").mockResolvedValue({});
567+
const logoutSpy = vi.spyOn(mockFixture.getCodexAcpClient(), "logout");
568568

569569
// @ts-expect-error - exercising private helper
570570
const handled = await codexAcpAgent.availableCommands.handleCommand({ name: "logout", input: null }, sessionState);

0 commit comments

Comments
 (0)