test(agents): wait for MCP method-not-found log

This commit is contained in:
Vincent Koc
2026-05-30 20:39:50 +01:00
parent 37058ad75a
commit 2780f540f8

View File

@@ -1137,8 +1137,10 @@ process.on("SIGINT", shutdown);`,
toolCount: 0,
resources: { listChanged: true },
});
await expect(fs.readFile(logPath, "utf8")).resolves.toContain(
await waitForFileText(
logPath,
"reject tools/list method not found",
LIST_TOOLS_SERVER_LOG_TIMEOUT_MS,
);
} finally {
await runtime.dispose();