From 825b2b68ada67ddb1d1910b296a50cf41e3e089c Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 5 Aug 2025 16:46:41 +0200 Subject: [PATCH] Update tests/test_utils_pv.py --- tests/test_utils_pv.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/test_utils_pv.py b/tests/test_utils_pv.py index fb1a79ef7..1a13d668b 100644 --- a/tests/test_utils_pv.py +++ b/tests/test_utils_pv.py @@ -26,26 +26,16 @@ def run_test_ioc(): prefix = "TEST:" ioc = TestIOC(prefix=prefix) - # ✅ Force minimal args to avoid pytest conflicts - _, run_options = ioc_arg_parser( - default_prefix=prefix, - desc="Test IOC", - argv=["--list-pvs"] # important to avoid argparse clash - ) - - # ✅ Proper IOC launch with run_options def start_ioc(): - run(ioc.pvdb, **run_options) + asyncio.run(run(ioc.pvdb, startup_hook=None, interfaces=["127.0.0.1"])) thread = threading.Thread(target=start_ioc, daemon=True) thread.start() + time.sleep(2.0) # Give the IOC time to come up - # ✅ Wait for server to be up - time.sleep(1.5) yield - # Fixture to capture stdout (for tqdm / progress bar) @pytest.fixture def capture_stdout(monkeypatch):