mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-10 05:20:42 +02:00
test: fix flaky test for positioner is moving signal
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user