Skip to content

Commit

Permalink
TST #725 done moving?
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Oct 5, 2022
1 parent 38609ad commit f5584d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apstools/devices/tests/test_positioner_soft_done.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,18 @@ def test_same_position_725(target, calcpos):
if calcpos.position == target:
# First, move away from the target.
status = calcpos.move(-target or 0.1 * (1 + random.random()))
assert status.done
assert status.elapsed > 0, str(status)
confirm_in_position(calcpos)

# Move to the target position.
status = calcpos.move(target)
assert status.done
assert status.elapsed > 0, str(status)
confirm_in_position(calcpos)

# Do it again (the reason for issue #725).
status = calcpos.move(target)
assert status.done
assert status.elapsed > 0, str(status)
confirm_in_position(calcpos)

0 comments on commit f5584d2

Please sign in to comment.