Update tests/test_utils_pvpreload.py
Run CI Tests / test (push) Successful in 1m5s

This commit is contained in:
2025-08-08 00:41:41 +02:00
parent 3919cd6a18
commit d323e9987b
+4 -2
View File
@@ -286,11 +286,13 @@ def test_pvpreload_end_to_end(tmp_path, caplog):
with open(preload_file, "wb") as f:
std_pickle.dump([pvname_6], f)
epics.pv._PVcache_.clear()
assert not is_pv_in_cache(pvname_6)
# Attendre que le prochain preload recharge PV6
time.sleep(0.2)
with caplog.at_level("DEBUG"):
pvpreload()
time.sleep(0.2)
assert is_pv_in_cache(pvname_6), "PV6 non rechargé par preload"
# Vérifie les logs