Skip to content

Commit 68bfaca

Browse files
committed
test(ci): wait for MCP tools list log
1 parent 371617f commit 68bfaca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ describe("session MCP runtime", () => {
862862
expect(catalog.tools.map((tool) => tool.toolName)).toEqual(["legacy_tool"]);
863863
expect(catalog.servers.legacy?.toolCount).toBe(1);
864864
expect(catalog.servers.legacy?.tools).toBeUndefined();
865-
await expect(fs.readFile(logPath, "utf8")).resolves.toContain("recv tools/list");
865+
await waitForFileText(logPath, "recv tools/list", LIST_TOOLS_SERVER_LOG_TIMEOUT_MS);
866866
} finally {
867867
await runtime.dispose();
868868
await fs.rm(tempDir, { recursive: true, force: true });

0 commit comments

Comments
 (0)