Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed May 29, 2024
1 parent 99d785e commit 451cbdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/actor/test_command_expose.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ async def test_expose_abort(
await asyncio.sleep(0.5)

assert abort.status.did_succeed

assert expose_command.status.did_fail
assert expose_command.replies[-1].message == "Exposure was aborted"

assert delegate._current_task is None

Expand All @@ -172,11 +174,11 @@ async def test_expose_abort_reset_fails(
controller: ArchonController,
mocker: MockFixture,
):
mocker.patch.object(controller, "reset", side_effect=ArchonError)

await actor.invoke_mock_command("expose --no-readout 1")
await asyncio.sleep(0.5)

mocker.patch.object(controller, "reset", side_effect=ArchonError)

abort = await actor.invoke_mock_command("abort --reset")
await abort

Expand Down

0 comments on commit 451cbdb

Please sign in to comment.