test(router): use deterministic retry timestamp

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-10-17 20:18:53 +00:00
parent a78fd88d87
commit 3da3e194d6

View file

@ -198,7 +198,7 @@ async def test_run_async_fallback_opens_the_hop_without_the_superseded_attempts_
)
logging_obj.model_call_details["custom_llm_provider"] = "openai"
logging_obj.model_call_details["litellm_params"] = {"acompletion": True}
logging_obj.model_call_details["current_attempt_api_call_start_time"] = datetime.now()
logging_obj.model_call_details["current_attempt_api_call_start_time"] = datetime(2026, 1, 1)
logging_obj.litellm_params = logging_obj.model_call_details["litellm_params"]
partial_usage: Final = Usage(prompt_tokens=52, completion_tokens=1, total_tokens=53)
logging_obj.record_partial_usage_for_failure(partial_usage, 0.01)