Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 7, 2025
1 parent 8ee7791 commit e4e9c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_command_engineering_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ async def test_command_engineering_mode_no_mock(actor: ECPActor):
async def test_command_engineering_mode_timeouts(actor: ECPActor):
actor._engineering_mode_hearbeat_interval = 0.1 # To speed up the test

cmd = await actor.invoke_mock_command("engineering-mode enable --timeout 0.2")
cmd = await actor.invoke_mock_command("engineering-mode enable --timeout 1")
await cmd

assert actor.is_engineering_mode_enabled() is True

await asyncio.sleep(0.3)
await asyncio.sleep(0.8)

assert actor.is_engineering_mode_enabled() is False

Expand Down

0 comments on commit e4e9c5f

Please sign in to comment.