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

This commit is contained in:
2025-08-07 21:22:00 +02:00
parent 007eab995e
commit 174fb58c66
+4 -5
View File
@@ -88,9 +88,8 @@ def test_preload_fichier_valide(tmp_path, caplog):
pv_1 = _PVcache_[pvname_1]
pv_2 = _PVcache_[pvname_2]
# Vérifie qu'ils sont bien connectés
assert pv_1.wait_for_connection(timeout=2)
assert pv_2.wait_for_connection(timeout=2)
assert not pv_1.connected
assert not pv_2.connected
# Vérifie le log final
logs = "\n".join(caplog.messages)
@@ -130,8 +129,8 @@ def test_offload(tmp_path, caplog):
pvname_4 = "TEST:PV4"
# Connecte 2 PVs
pv3 = get_pv(pvname_3)
pv4 = get_pv(pvname_4)
pv3 = get_pv(pvname_3, connect=True)
pv4 = get_pv(pvname_4, connect=True)
assert pv3.wait_for_connection(timeout=2)
assert pv4.wait_for_connection(timeout=2)