test: assert skipped candidates do not compound cooldown

This commit is contained in:
Teknium
2026-09-07 02:40:47 -07:00
parent fc70d05bb1
commit 0746484b14
+2 -1
View File
@@ -173,9 +173,10 @@ class TestFallbackChainAdvancement:
(None, None), # broken provider
(_mock_client(), "gpt-4o"), # fallback succeeds
]
assert agent._try_activate_fallback() is True
assert agent._try_activate_fallback(FailoverReason.rate_limit) is True
assert agent.model == "gpt-4o"
assert agent._fallback_index == 2
assert agent._rate_limit_backoff_count == 1
def test_skips_provider_that_raises_to_next(self):
"""If resolve_provider_client raises, skip to next in chain."""