mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(tests): remove dead code in test_allm_passthrough_route_429_streaming_raises
This commit is contained in:
parent
6b5c1d0afb
commit
eae7695c99
1 changed files with 0 additions and 9 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue