diff --git a/HISTORY.rst b/HISTORY.rst index c7b8f88e..c59180be 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -13,7 +13,7 @@ PlatformIO Core 6 **A professional collaborative platform for declarative, safety-critical, and test-driven embedded development.** -6.1.4 (2022-??-??) +6.1.4 (2022-08-12) ~~~~~~~~~~~~~~~~~~ * Added support for accepting the original FileNode environment in a "callback" function when using `Build Middlewares `__ (`pull #4380 `_) diff --git a/docs b/docs index 1961fcd4..b38923e3 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 1961fcd4a38f8c6150470311f32b876efb85d3b0 +Subproject commit b38923e39bc9caa219d5816a41c65f821882c9c1 diff --git a/platformio/__init__.py b/platformio/__init__.py index 019bae5c..bce9bfd8 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (6, 1, "4b4") +VERSION = (6, 1, 4) __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/tests/package/test_manager.py b/tests/package/test_manager.py index 896a7231..c1de90b1 100644 --- a/tests/package/test_manager.py +++ b/tests/package/test_manager.py @@ -18,6 +18,7 @@ import logging import os import time from pathlib import Path +from random import random import pytest import semantic_version @@ -41,11 +42,11 @@ def test_download(isolated_pio_core): lm.set_log_level(logging.ERROR) archive_path = lm.download(url, checksum) assert fs.calculate_file_hashsum("sha256", archive_path) == checksum - lm.cleanup_expired_downloads(time.time()) + lm.cleanup_expired_downloads(random()) assert os.path.isfile(archive_path) # test outdated downloads lm.set_download_utime(archive_path, time.time() - lm.DOWNLOAD_CACHE_EXPIRE - 1) - lm.cleanup_expired_downloads(time.time()) + lm.cleanup_expired_downloads(random()) assert not os.path.isfile(archive_path) # check that key is deleted from DB with open(lm.get_download_usagedb_path(), encoding="utf8") as fp: