test(http): restore cached client state

Signed-off-by: amarrtech <272048731+amarrtech@users.noreply.github.com>
This commit is contained in:
amarrtech 2026-09-26 08:50:10 -07:00
parent 27193c9460
commit 44838201ce

View file

@ -746,7 +746,7 @@ class TestDefaultCachedClientTimeoutHonorsRequestTimeout:
monkeypatch.setattr(litellm, "request_timeout", 300)
monkeypatch.setattr(litellm, "request_timeout_explicitly_set", True)
litellm.in_memory_llm_clients_cache = LLMClientCache()
monkeypatch.setattr(litellm, "in_memory_llm_clients_cache", LLMClientCache())
client = _get_httpx_client(params={"timeout": None})
request = client.client.build_request("GET", "https://example.com")