test(test_caching.py): fix cache test if embedding call is fast

This commit is contained in:
Krrish Dholakia 2024-01-26 23:00:59 -08:00
parent d542eb1552
commit 8d4749b94a

View file

@ -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()