mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 21:14:17 +02:00
fix: increase sleep duration in proxy cache tests (#3567)
This commit is contained in:
parent
f01c8fd7f4
commit
196e2b48c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue