fix: ensure filepath is set to the required value before waiting

This commit is contained in:
guijar_m 2024-10-23 17:13:45 +02:00 committed by guijar_m
parent 1337ddc9ac
commit db9e191e4a

View File

@ -147,7 +147,9 @@ def test_wait_for_signal(detector_base):
detector_base.stopped = False
# 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")
status = detector_base.custom_prepare.wait_with_status(
[(detector_base.filepath.get, expected_value)],