fix: increase sleep duration in proxy cache tests (#3567)

This commit is contained in:
Bill Easton 2026-03-21 10:38:58 -05:00 committed by GitHub
commit 196e2b48c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -815,7 +815,7 @@ class TestProxyProviderCache:
assert provider._tools_cache is not None
original_ts = provider._tools_cache.timestamp
time.sleep(0.01)
time.sleep(0.05)
await provider._get_tool("greet")
assert provider._tools_cache.timestamp > original_ts
@ -829,7 +829,7 @@ class TestProxyProviderCache:
first_ts = provider._tools_cache.timestamp # type: ignore[union-attr]
# Tiny sleep so monotonic clock advances
time.sleep(0.01)
time.sleep(0.05)
await provider._list_tools()
assert provider._tools_cache.timestamp > first_ts # type: ignore[union-attr]