From 8d4749b94a70a224828727f7d4de695bcddb243d Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 26 Jan 2024 23:00:59 -0800 Subject: [PATCH] test(test_caching.py): fix cache test if embedding call is fast --- litellm/tests/test_caching.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/tests/test_caching.py b/litellm/tests/test_caching.py index 72c033abf..f4251f08b 100644 --- a/litellm/tests/test_caching.py +++ b/litellm/tests/test_caching.py @@ -723,8 +723,8 @@ def test_cache_override(): print(f"Embedding 2 response time: {end_time - start_time} seconds") assert ( - end_time - start_time > 0.1 - ) # ensure 2nd response comes in over 0.1s. This should not be cached. + end_time - start_time > 0.05 + ) # ensure 2nd response comes in over 0.05s. This should not be cached. # test_cache_override()