test(ci): stabilize MCP catalog timeout coverage · openclaw/openclaw@508594a
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -665,11 +665,11 @@ describe("session MCP runtime", () => {
|
665 | 665 | const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "bundle-mcp-slow-listtools-")); |
666 | 666 | const serverPath = path.join(tempDir, "slow-list-tools.mjs"); |
667 | 667 | const logPath = path.join(tempDir, "server.log"); |
668 | | -testing.setBundleMcpCatalogListTimeoutMsForTest(2_000); |
| 668 | +testing.setBundleMcpCatalogListTimeoutMsForTest(3_000); |
669 | 669 | await writeListToolsMcpServer({ |
670 | 670 | filePath: serverPath, |
671 | 671 | logPath, |
672 | | -delayMs: 250, |
| 672 | +delayMs: 1_250, |
673 | 673 | }); |
674 | 674 | |
675 | 675 | const runtime = await getOrCreateSessionMcpRuntime({ |
@@ -682,7 +682,7 @@ describe("session MCP runtime", () => {
|
682 | 682 | slowListTools: { |
683 | 683 | command: process.execPath, |
684 | 684 | args: [serverPath], |
685 | | -connectionTimeoutMs: 150, |
| 685 | +connectionTimeoutMs: 1_000, |
686 | 686 | }, |
687 | 687 | }, |
688 | 688 | }, |
@@ -697,7 +697,7 @@ describe("session MCP runtime", () => {
|
697 | 697 | serverName: "slowListTools", |
698 | 698 | toolCount: 1, |
699 | 699 | }); |
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"); |
701 | 701 | } finally { |
702 | 702 | await runtime.dispose(); |
703 | 703 | await fs.rm(tempDir, { recursive: true, force: true }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。