From 6dbd86847e589471dee822b5357d98ecc4746af4 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 21 Nov 2026 20:33:13 -0500 Subject: [PATCH] test(mcp): consolidate default HTTP input capacity checks (#13258) --- tests/boundary/mcp/toolInputCapacityHttp.test.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/boundary/mcp/toolInputCapacityHttp.test.ts b/tests/boundary/mcp/toolInputCapacityHttp.test.ts index 11cc9de78b..8ea23e2ed2 100644 --- a/tests/boundary/mcp/toolInputCapacityHttp.test.ts +++ b/tests/boundary/mcp/toolInputCapacityHttp.test.ts @@ -87,9 +87,9 @@ processTest( ); processTest( - "bounds missing-field Evidence expansion at the default admission boundary", + "bounds Evidence validation and a near-frame-limit request under the default allowance", async ({ processes }) => { - const { client } = await openHttp(processes, undefined); + const { root, client } = await openHttp(processes, undefined); for (const count of [1_019, 1_020]) { const arguments_ = { functions: Array.from({ length: count }, () => ({})), @@ -120,20 +120,8 @@ processTest( }); } expect(Buffer.byteLength(JSON.stringify(result))).toBeLessThan(4096); - await client.ping(); } - const healthy = await client.callTool({ - name: "inspect_analysis_settings", - arguments: {}, - }); - expect(healthy.isError).not.toBe(true); - }, -); -processTest( - "refuses a sub-4MiB HTTP payload under the default allowance without expanded diagnostics", - async ({ processes }) => { - const { root, client } = await openHttp(processes, undefined); const paths = { left_bundle_path: join(root, "absent-left"), right_bundle_path: join(root, "absent-right"),