From d912e391ebb5c3b2055f959528f640dec91b2dfa Mon Sep 17 00:00:00 2001 From: tligui_y Date: Fri, 8 Aug 2025 20:57:51 +0200 Subject: [PATCH] Update tests/test_utils_opmsg.py --- tests/test_utils_opmsg.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_utils_opmsg.py b/tests/test_utils_opmsg.py index 6a8bcca94..6c17dbfe5 100644 --- a/tests/test_utils_opmsg.py +++ b/tests/test_utils_opmsg.py @@ -70,7 +70,7 @@ def ioc(): @pytest.fixture(scope="module", autouse=True) def run_all_iocs(): threads = ioc() - time.sleep(1.0) # laisser le temps aux serveurs de démarrer + time.sleep(2.0) # laisser le temps aux serveurs de démarrer yield @@ -79,8 +79,8 @@ class TestOperationMessageStatus: @pytest.fixture def status(self): s = OperationMessageStatus("SF-OP:CR-MSG") - assert s.pv_date.wait_for_connection(timeout=2.0), "PV STATUS-DATE not connected" - assert s.pv_status.wait_for_connection(timeout=2.0), "PV STATUS not connected" + assert s.pv_date.wait_for_connection(timeout=5.0), "PV STATUS-DATE not connected" + assert s.pv_status.wait_for_connection(timeout=5.0), "PV STATUS not connected" return s def test_initialization_and_enum(self, status): @@ -127,8 +127,8 @@ class TestOperationMessageEntry: def entry(self, request): idx = request.param e = OperationMessageEntry("SF-OP:CR-MSG", idx) - assert e.pv_date.wait_for_connection(timeout=2.0), f"PV OP-DATE{idx} not connected" - assert e.pv_msg.wait_for_connection(timeout=2.0), f"PV OP-MSG{idx} not connected" + assert e.pv_date.wait_for_connection(timeout=5.0), f"PV OP-DATE{idx} not connected" + assert e.pv_msg.wait_for_connection(timeout=5.0), f"PV OP-MSG{idx} not connected" return e def test_initialization(self, entry):