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

This commit is contained in:
2025-08-09 04:00:16 +02:00
parent c17507a96e
commit 312158cc46
+12
View File
@@ -60,6 +60,18 @@ def run_all_iocs():
t.join(timeout=2.0)
time.sleep(0.2)
import socket
for port in (5064, 5065):
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
sock.bind(("127.0.0.1", port))
print(f"[OK] Port {port} libre")
except OSError as e:
print(f"[OCCUPÉ] Port {port} déjà utilisé: {e}")
finally:
sock.close()
'''
# -------- OperationMessageStatus --------