Skip to content

Commit 508594a

Browse files
committed
test(ci): stabilize MCP catalog timeout coverage
1 parent 2ff1dfd commit 508594a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/agents/agent-bundle-mcp-runtime.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,11 +665,11 @@ describe("session MCP runtime", () => {
665665
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "bundle-mcp-slow-listtools-"));
666666
const serverPath = path.join(tempDir, "slow-list-tools.mjs");
667667
const logPath = path.join(tempDir, "server.log");
668-
testing.setBundleMcpCatalogListTimeoutMsForTest(2_000);
668+
testing.setBundleMcpCatalogListTimeoutMsForTest(3_000);
669669
await writeListToolsMcpServer({
670670
filePath: serverPath,
671671
logPath,
672-
delayMs: 250,
672+
delayMs: 1_250,
673673
});
674674

675675
const runtime = await getOrCreateSessionMcpRuntime({
@@ -682,7 +682,7 @@ describe("session MCP runtime", () => {
682682
slowListTools: {
683683
command: process.execPath,
684684
args: [serverPath],
685-
connectionTimeoutMs: 150,
685+
connectionTimeoutMs: 1_000,
686686
},
687687
},
688688
},
@@ -697,7 +697,7 @@ describe("session MCP runtime", () => {
697697
serverName: "slowListTools",
698698
toolCount: 1,
699699
});
700-
await expect(fs.readFile(logPath, "utf8")).resolves.toContain("delay tools/list 250");
700+
await expect(fs.readFile(logPath, "utf8")).resolves.toContain("delay tools/list 1250");
701701
} finally {
702702
await runtime.dispose();
703703
await fs.rm(tempDir, { recursive: true, force: true });

0 commit comments

Comments
 (0)