Increase expire time

This commit is contained in:
Ivan Kravets
2022-08-12 14:59:37 +03:00
parent c5d7c4f88e
commit 10136729ab

View File

@ -44,7 +44,7 @@ def test_download(isolated_pio_core):
lm.cleanup_expired_downloads(time.time())
assert os.path.isfile(archive_path)
# test outdated downloads
lm.set_download_utime(archive_path, time.time() - lm.DOWNLOAD_CACHE_EXPIRE - 1)
lm.set_download_utime(archive_path, time.time() - lm.DOWNLOAD_CACHE_EXPIRE - 60)
lm.cleanup_expired_downloads(time.time())
assert not os.path.isfile(archive_path)
# check that key is deleted from DB