Don't tick on ttl cache

This commit is contained in:
Matthias
2024-02-17 16:27:43 +01:00
committed by Joe Schr
parent 103af46e70
commit 25ee332dc8

View File

@@ -5,7 +5,7 @@ from freqtrade.util import PeriodicCache
def test_ttl_cache(): def test_ttl_cache():
with time_machine.travel("2021-09-01 05:00:00 +00:00") as t: with time_machine.travel("2021-09-01 05:00:00 +00:00", tick=False) as t:
cache = PeriodicCache(5, ttl=60) cache = PeriodicCache(5, ttl=60)
cache1h = PeriodicCache(5, ttl=3600) cache1h = PeriodicCache(5, ttl=3600)