From 1551fc9e43c08f5dad3d4e349e2ba88ebf787e72 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 13 Jul 2026 21:45:36 -0700 Subject: [PATCH] test(e2e): isolate Pond baseline MCP tool (#107128) --- scripts/e2e/node-plugin-tools-pond.mjs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/e2e/node-plugin-tools-pond.mjs b/scripts/e2e/node-plugin-tools-pond.mjs index de915b7e46c..e760cc08cef 100644 --- a/scripts/e2e/node-plugin-tools-pond.mjs +++ b/scripts/e2e/node-plugin-tools-pond.mjs @@ -73,7 +73,13 @@ async function availableLoopbackPort() { const address = server.address(); const port = typeof address === "object" && address ? address.port : 0; await new Promise((resolve, reject) => { - server.close((error) => (error ? reject(error) : resolve())); + server.close((error) => { + if (error) { + reject(error instanceof Error ? error : new Error(String(error))); + return; + } + resolve(); + }); }); if (!port) { throw new Error("failed to allocate pond gateway port"); @@ -304,6 +310,8 @@ async function prepareRoleState(baseDir, role, token, nodeLabel, options = {}) { command: process.execPath, args: [mcpServerPath], transport: "stdio", + // Keep the baseline surface singular; the hot-plug scenario owns the slow tool. + toolFilter: { include: [MCP_TOOL_NAME] }, }, }, },