diff --git a/tests/test_utils_pv.py b/tests/test_utils_pv.py index 5bd3ae079..96d33b220 100644 --- a/tests/test_utils_pv.py +++ b/tests/test_utils_pv.py @@ -58,6 +58,9 @@ def capture_stdout(monkeypatch): def test_put_with_progress_and_repr(capture_stdout, value, expected_bar, expected_color): # Connect to the test PV using the custom slic PV class pv = PV("TEST:VAL") + + pv.wait_for_connection(timeout=2.0) + assert pv.connected # Set initial value to 0.0 pv.put(0.0, wait=True)