Skip to content

Commit 1a7e7f0

Browse files
committed
test: wait for resource-only mcp rejection log
1 parent 6852403 commit 1a7e7f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,10 @@ process.on("SIGINT", shutdown);`,
11371137
toolCount: 0,
11381138
resources: { listChanged: true },
11391139
});
1140-
await expect(fs.readFile(logPath, "utf8")).resolves.toContain(
1140+
await waitForFileText(
1141+
logPath,
11411142
"reject tools/list method not found",
1143+
LIST_TOOLS_SERVER_LOG_TIMEOUT_MS,
11421144
);
11431145
} finally {
11441146
await runtime.dispose();

0 commit comments

Comments
 (0)