test: fix flaky test for positioner is moving signal

This commit is contained in:
appel_c 2025-01-21 09:21:20 +01:00
parent 35a45a3a73
commit 92a3176bfd

View File

@ -254,7 +254,8 @@ def test_positioner_motor_is_moving_signal(positioner):
assert positioner.motor_is_moving.get() == 0 assert positioner.motor_is_moving.get() == 0
status = positioner.move(5) status = positioner.move(5)
assert positioner.motor_is_moving.get() == 1 assert positioner.motor_is_moving.get() == 1
status.wait() status.wait() # Wait will not block until callbacks are executed
time.sleep(0.3)
assert positioner.motor_is_moving.get() == 0 assert positioner.motor_is_moving.get() == 0