From 821ed9e55b3446b2feea17db60468c2cabd092b3 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 23 Jan 2024 12:33:10 +0200 Subject: [PATCH] Robustify the monitor tests --- tests/cmd/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cmd/monitor.py b/tests/cmd/monitor.py index 93c337c..722f9dc 100755 --- a/tests/cmd/monitor.py +++ b/tests/cmd/monitor.py @@ -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...")