tmp commit

Signed-off-by: Stepan Bagritsevich <stefan@dragonflydb.io>
This commit is contained in:
Stepan Bagritsevich 2025-04-25 13:42:55 +02:00
parent 22272c9c60
commit 0f0e3a7ad9
No known key found for this signature in database
GPG key ID: 92DAADC9F15EE26E

View file

@ -267,13 +267,13 @@ async def test_cache_eviction_with_rss_deny_oom_simple_case(
stats_info = await async_client.info("stats")
assert memory_info["used_memory"] > max_memory * (
rss_oom_deny_ratio - eviction_memory_budget_threshold - 0.08
rss_oom_deny_ratio - eviction_memory_budget_threshold - 0.105
), "We should not evict all items."
assert memory_info["used_memory"] < max_memory * (
rss_oom_deny_ratio - eviction_memory_budget_threshold
), "Used memory should be smaller than threshold."
assert memory_info["used_memory_rss"] > max_memory * (
rss_oom_deny_ratio - eviction_memory_budget_threshold - 0.08
rss_oom_deny_ratio - eviction_memory_budget_threshold - 0.105
), "We should not evict all items."
evicted_keys = stats_info["evicted_keys"]