From 92a3176bfd07e1cfa7a1112bb8a7b59dac63bded Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 21 Jan 2025 09:21:20 +0100 Subject: [PATCH] test: fix flaky test for positioner is moving signal --- tests/test_simulation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_simulation.py b/tests/test_simulation.py index f06769d..f140c22 100644 --- a/tests/test_simulation.py +++ b/tests/test_simulation.py @@ -254,7 +254,8 @@ def test_positioner_motor_is_moving_signal(positioner): assert positioner.motor_is_moving.get() == 0 status = positioner.move(5) 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