mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-01-20 08:52:20 +01:00
fix: ensure filepath is set to the required value before waiting
This commit is contained in:
@@ -147,7 +147,9 @@ def test_wait_for_signal(detector_base):
|
|||||||
|
|
||||||
detector_base.stopped = False
|
detector_base.stopped = False
|
||||||
# Check that wait for status runs into timeout with expectd exception
|
# Check that wait for status runs into timeout with expectd exception
|
||||||
detector_base.filepath.set("wrong_value")
|
st = detector_base.filepath.set("wrong_value")
|
||||||
|
st.wait()
|
||||||
|
assert detector_base.filepath.get() == "wrong_value"
|
||||||
exception = TimeoutError("Timeout")
|
exception = TimeoutError("Timeout")
|
||||||
status = detector_base.custom_prepare.wait_with_status(
|
status = detector_base.custom_prepare.wait_with_status(
|
||||||
[(detector_base.filepath.get, expected_value)],
|
[(detector_base.filepath.get, expected_value)],
|
||||||
|
|||||||
Reference in New Issue
Block a user