Skip to content

Commit 6e8a407

Browse files
committed
Add back resolves
1 parent 5b3b551 commit 6e8a407

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");
144+
const logoutSpy = vi.spyOn(codexAcpAgent, "unstable_logout").mockResolvedValue();
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");
567+
const logoutSpy = vi.spyOn(mockFixture.getCodexAcpClient(), "logout").mockResolvedValue();
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)