From dfb8b95616f67e3ebbbfc03cfaab7f6b6e31033b Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 5 Aug 2025 16:32:26 +0200 Subject: [PATCH] Update tests/test_utils_pv.py --- tests/test_utils_pv.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_utils_pv.py b/tests/test_utils_pv.py index 44fb336fb..3a52a85d2 100644 --- a/tests/test_utils_pv.py +++ b/tests/test_utils_pv.py @@ -26,15 +26,15 @@ def run_test_ioc(): prefix = "TEST:" ioc = TestIOC(prefix=prefix) - # Solution : éviter que caproto parse les args pytest - _, run_options = ioc_arg_parser(default_prefix=prefix, desc="Test IOC", argv=[]) - def start_ioc(): - run(ioc.pvdb, **run_options) + # Run the IOC directly, no parsing + asyncio.run(run(ioc.pvdb, startup_hook=None)) thread = threading.Thread(target=start_ioc, daemon=True) thread.start() - time.sleep(1.5) # wait until IOC is ready + + # Let the IOC boot up + time.sleep(1.5) yield