mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
test: strengthen assertion to verify num_retries=0 is stamped, not just !=99
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ec5e1aa12a
commit
fd0c469a25
1 changed files with 3 additions and 2 deletions
|
|
@ -178,8 +178,9 @@ async def test_decorator_does_not_inject_global_num_retries_for_router_calls():
|
|||
)
|
||||
|
||||
raised = exc_info.value
|
||||
assert raised.num_retries != 99, (
|
||||
"Decorator injected litellm.num_retries=99 into a router-managed exception. "
|
||||
assert raised.num_retries == 0, (
|
||||
f"Expected num_retries=0 (router stamped actual count), "
|
||||
f"got {raised.num_retries}. "
|
||||
"Router calls should not be polluted by the global litellm.num_retries value."
|
||||
)
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue