Skip to content

Commit cf0a81b

Browse files
committed
Adjust ACP server test timeouts
1 parent 5a9a6f9 commit cf0a81b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/__tests__/CodexACPAgent/CodexAcpClient.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {createTestFixture, type TestFixture} from "../acp-test-utils";
44
import type {ServerNotification} from "../../app-server";
55
import type {SessionState} from "../../CodexAcpServer";
66

7-
describe('ACP server test', () => {
7+
describe('ACP server test', { timeout: 40_000 }, () => {
88

99
let fixture: TestFixture;
1010
beforeEach(() => {
@@ -20,7 +20,7 @@ describe('ACP server test', () => {
2020

2121
fixture.getCodexAcpClient().authRequired = vi.fn().mockResolvedValue(false);
2222
const newSessionResponse = await codexAcpAgent.newSession({cwd: "", mcpServers: []});
23-
codexAcpAgent.prompt({ sessionId: newSessionResponse.sessionId, prompt: [{type: "text", text: "Hi!"}] });
23+
codexAcpAgent.prompt({sessionId: newSessionResponse.sessionId, prompt: [{type: "text", text: "Hi!"}]});
2424

2525
const transportDump = fixture.getCodexConnectionDump(ignoredFields);
2626
await expect(transportDump).toMatchFileSnapshot("data/start-conversation.json");
@@ -93,7 +93,7 @@ describe('ACP server test', () => {
9393

9494
expect(fixture.getAcpConnectionDump([])).toMatchFileSnapshot("data/output-acp-events.json");
9595

96-
}, 90_000);
96+
});
9797

9898
//dev-time test
9999
it.skip('should convert session notification to acp events', async () => {
@@ -105,5 +105,5 @@ describe('ACP server test', () => {
105105
const newSessionResponse = await codexAcpAgent.newSession({cwd: "/home/alex/work/spring-petclinic/", mcpServers: []});
106106
fixture.clearCodexConnectionDump();
107107
await codexAcpAgent.prompt({ sessionId: newSessionResponse.sessionId, prompt: [{type: "text", text: "Add method `minus` to Math Utils."}] });
108-
}, 90_000);
108+
});
109109
});

0 commit comments

Comments
 (0)