fix(tests): remove dead code in test_allm_passthrough_route_429_streaming_raises

This commit is contained in:
KnyazSh 2026-08-23 11:10:22 +00:00
parent 6b5c1d0afb
commit eae7695c99

View file

@ -716,15 +716,6 @@ async def test_allm_passthrough_route_429_streaming_raises():
litellm_logging_obj=mock_logging_obj,
)
# result is an async generator — consuming it must raise, not silently yield error bytes
chunks = []
async def _drain():
async for chunk in result: # type: ignore[union-attr]
chunks.append(chunk)
with pytest.raises(httpx.HTTPStatusError) as exc_info:
await _drain()
assert exc_info.value.response.status_code == 429