test(agents): wait for MCP method-not-found log · openclaw/openclaw@2780f54
openclaw
·
2026-05-31
·
via Recent Commits to openclaw:main
src/agents/agent-bundle-mcp-runtime.test.ts
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1137,8 +1137,10 @@ process.on("SIGINT", shutdown);`,
|
1137 | 1137 | toolCount: 0, |
1138 | 1138 | resources: { listChanged: true }, |
1139 | 1139 | }); |
1140 | | -await expect(fs.readFile(logPath, "utf8")).resolves.toContain( |
| 1140 | +await waitForFileText( |
| 1141 | +logPath, |
1141 | 1142 | "reject tools/list method not found", |
| 1143 | +LIST_TOOLS_SERVER_LOG_TIMEOUT_MS, |
1142 | 1144 | ); |
1143 | 1145 | } finally { |
1144 | 1146 | await runtime.dispose(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。