Skip to content

Commit

Permalink
Robustify the monitor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Jan 23, 2024
1 parent 6c5092e commit 821ed9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cmd/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def instantiate(info: NodeInfo, node_id: int, mode: int, health: int, vssc: int)
await reg_client_a.call(uavcan.register.List_1.Request(i % 11))
if i % 5 == 0:
await reg_client_b.call(uavcan.register.List_1.Request(i % 11))
await asyncio.sleep(0.1)
except (asyncio.TimeoutError, asyncio.CancelledError): # pragma: no cover
await asyncio.sleep(0.2)
except (asyncio.TimeoutError, asyncio.CancelledError, GeneratorExit): # pragma: no cover
pass
finally:
_logger.info("STOPPING THE NODES...")
Expand Down

0 comments on commit 821ed9e

Please sign in to comment.