Skip to content

Commit

Permalink
Slacken off timing for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Nov 22, 2024
1 parent 6a38237 commit 47c06d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/sim/demo/test_sim_motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,33 +43,33 @@ async def test_negative_move():
m1 = SimMotor("M1", instant=False)
await m1.connect()
assert await m1.user_readback.get_value() == 0.0
status = m1.set(-0.11)
status = m1.set(-0.19)
updates = []
status.watch(lambda **kwargs: updates.append(kwargs))
await status
assert await m1.user_readback.get_value() == -0.11
assert await m1.user_readback.get_value() == -0.19
assert updates == [
{
"current": 0.0,
"initial": 0.0,
"name": "M1",
"target": -0.11,
"target": -0.19,
"time_elapsed": pytest.approx(0, abs=0.05),
"unit": "mm",
},
{
"current": -0.1,
"current": pytest.approx(-0.1),
"initial": 0.0,
"name": "M1",
"target": -0.11,
"target": -0.19,
"time_elapsed": pytest.approx(0.1, abs=0.05),
"unit": "mm",
},
{
"current": -0.11,
"current": -0.19,
"initial": 0.0,
"name": "M1",
"target": -0.11,
"target": -0.19,
"time_elapsed": pytest.approx(0.2, abs=0.05),
"unit": "mm",
},
Expand Down

0 comments on commit 47c06d2

Please sign in to comment.