Update tests/test_utils_opmsg.py
Run CI Tests / test (push) Successful in 1m20s

This commit is contained in:
2025-08-08 20:57:51 +02:00
parent 668ee0aa7a
commit d912e391eb
+5 -5
View File
@@ -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):