mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
tmp commit
Signed-off-by: Stepan Bagritsevich <stefan@dragonflydb.io>
This commit is contained in:
parent
22272c9c60
commit
0f0e3a7ad9
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue