fix: ensure filepath is set to the required value before waiting
This commit is contained in:
parent
1337ddc9ac
commit
db9e191e4a
@ -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)],
|
||||
|
Loading…
x
Reference in New Issue
Block a user