Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test: delete test_least_recently_used_evicted_first - 'or True' tautology (#4279)

LearningCircuit7d307dd07907
diff --git a/tests/utilities/test_search_cache_stampede.py b/tests/utilities/test_search_cache_stampede.py
index 0a63ab32d3..67c40bfd5f 100644
--- a/tests/utilities/test_search_cache_stampede.py
+++ b/tests/utilities/test_search_cache_stampede.py
@@ -311,26 +311,6 @@ class TestLRUEviction:
assert new_access_time >= initial_access_time
- def test_least_recently_used_evicted_first(self, small_cache):
- """Oldest accessed items evicted first."""
- # Add items with deliberate access pattern
- for i in range(5):
- small_cache.put(f"query_{i}", [{"title": f"Result {i}"}], "engine1")
- time.sleep(0.01) # Ensure different access times
-
- # Access item 0 to make it recently used
- small_cache.get("query_0", "engine1")
- time.sleep(0.01)
-
- # Add more items to trigger eviction
- for i in range(5, 15):
- small_cache.put(f"query_{i}", [{"title": f"Result {i}"}], "engine1")
-
- # query_0 should still be in memory (recently accessed)
- # Note: Due to eviction buffer, we can't guarantee exact behavior
- # Just verify the cache still works
- assert small_cache.get("query_0", "engine1") is not None or True
-
def test_eviction_order_with_concurrent_access(self, small_cache):
"""LRU order maintained under concurrent access."""
# Pre-populate cache