Skip to content

Commit

Permalink
Slacken timing for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Nov 18, 2024
1 parent 07a0779 commit bd5b00a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/epics/adcore/test_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def test_start_acquiring_driver_and_ensure_status_flags_immediate_failure(
):
set_mock_value(driver.detector_state, adcore.DetectorState.Error)
acquiring = await adcore.start_acquiring_driver_and_ensure_status(
driver, timeout=0.01
driver, timeout=0.05
)
with pytest.raises(ValueError):
await acquiring
Expand Down
7 changes: 2 additions & 5 deletions tests/epics/demo/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
get_mock,
get_mock_put,
set_mock_value,
wait_for_pending_wakeups,
)
from ophyd_async.epics import demo

# Long enough for multiple asyncio event loop cycles to run so
# all the tasks have a chance to run
A_WHILE = 0.001


@pytest.fixture
async def mock_mover() -> demo.Mover:
Expand Down Expand Up @@ -141,7 +138,7 @@ async def test_mover_moving_well(mock_mover: demo.Mover) -> None:
time_elapsed=pytest.approx(0.1, abs=0.05),
)
set_mock_value(mock_mover.readback, 0.5499999)
await asyncio.sleep(A_WHILE)
await wait_for_pending_wakeups()
assert s.done
assert s.success
done.assert_called_once_with(s)
Expand Down

0 comments on commit bd5b00a

Please sign in to comment.