diff --git a/tests/test_utils_pvpreload.py b/tests/test_utils_pvpreload.py index 8966d0b53..34b09f8c5 100644 --- a/tests/test_utils_pvpreload.py +++ b/tests/test_utils_pvpreload.py @@ -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)