Skip to content

Commit a35104c

Browse files
Extend polling timeout for lint diagnosis completion (#2349)
Co-authored-by: Anushka Shukla <[email protected]>
1 parent 426f1ac commit a35104c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ansible-mcp-server/test/tools/adeIntegration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe("ADE Tools Integration", () => {
3939
expect(result).toBeDefined();
4040
expect(result.content).toBeDefined();
4141
expect(Array.isArray(result.content)).toBe(true);
42-
});
42+
}, 45000); // 45 second timeout for macOS slowness
4343

4444
it("should be callable with all optional arguments", async () => {
4545
const args = {

test/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export async function testDiagnostics(
300300
// Poll until we have the expected number of diagnostics
301301
// Since waitForDiagnosisCompletion already waits for processes, this should be quick
302302
if (actualDiagnostics.length !== expectedDiagnostics.length) {
303-
const pollTimeout = 1500; // Reduced - most diagnostics should be ready by now
303+
const pollTimeout = 3000;
304304
const pollInterval = 50; // Very fast polling for quick response
305305
let elapsed = 0;
306306

0 commit comments

Comments
 (0)