Skip to content

The agent that grows with you

test: minimal MCPServerTask fixture carries the _http_rejection sink

teknium1fc19bc1fb9d1
diff --git a/tests/tools/test_mcp_preflight_content_type.py b/tests/tools/test_mcp_preflight_content_type.py
index b22bb1afa3d..4dc81e6b2f4 100644
--- a/tests/tools/test_mcp_preflight_content_type.py
+++ b/tests/tools/test_mcp_preflight_content_type.py
@@ -37,6 +37,7 @@ def _make_task(name: str = "probe_srv") -> MCPServerTask:
"""Minimal MCPServerTask without running the heavy __init__."""
task = MCPServerTask.__new__(MCPServerTask)
task.name = name
+ task._http_rejection = {} # sink the transport client's rejection-recorder hook writes into
return task