diff --git a/tests/integration/mcp/test_mcp_llm_endpoints.py b/tests/integration/mcp/test_mcp_llm_endpoints.py index 40d7c197066..3d3d337cab7 100644 --- a/tests/integration/mcp/test_mcp_llm_endpoints.py +++ b/tests/integration/mcp/test_mcp_llm_endpoints.py @@ -307,7 +307,7 @@ def test_ungranted_key_gets_no_gateway_tools_and_the_peer_is_never_reached(gatew assert _peer_add_calls(rig.peer) == (), "denied caller reached the peer" requests: Final = rig.upstream_tools() assert requests and all(rig.tool not in names for names in requests), requests - assert response.status_code in (200, 400, 401, 403), response.text + assert response.status_code == 200, response.text @pytest.mark.parametrize("surface", ("chat", "responses", "messages"))