mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
test(nvidia_nim): freeze the discovery cache clock
This commit is contained in:
parent
ad4905e01c
commit
c1935885c3
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def client(app: FastAPI) -> Iterator[TestClient]:
|
|||
with (
|
||||
patch("litellm.proxy.proxy_server.prisma_client", None),
|
||||
patch.object(litellm, "credential_list", []),
|
||||
patch("litellm.proxy.credential_endpoints.nim_model_discovery._CACHE", InMemoryCache()),
|
||||
patch("litellm.proxy.credential_endpoints.nim_model_discovery._CACHE", InMemoryCache(clock=lambda: 0.0)),
|
||||
):
|
||||
with TestClient(app) as test_client:
|
||||
yield test_client
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue