mirror of
https://github.com/platformio/platformio-core.git
synced 2025-09-27 14:30:53 +02:00
Increase expire time
This commit is contained in:
@@ -44,7 +44,7 @@ def test_download(isolated_pio_core):
|
|||||||
lm.cleanup_expired_downloads(time.time())
|
lm.cleanup_expired_downloads(time.time())
|
||||||
assert os.path.isfile(archive_path)
|
assert os.path.isfile(archive_path)
|
||||||
# test outdated downloads
|
# 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())
|
lm.cleanup_expired_downloads(time.time())
|
||||||
assert not os.path.isfile(archive_path)
|
assert not os.path.isfile(archive_path)
|
||||||
# check that key is deleted from DB
|
# check that key is deleted from DB
|
||||||
|
Reference in New Issue
Block a user