From 3b31907c4043829ef48842b1aa39237a167cfb7e Mon Sep 17 00:00:00 2001 From: Anthony Welte Date: Tue, 19 Nov 2024 21:20:26 +0100 Subject: [PATCH] Fix instability in test_topic_bw --- ros2topic/test/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros2topic/test/test_cli.py b/ros2topic/test/test_cli.py index 97ffe6cbb..a23aaccd9 100644 --- a/ros2topic/test/test_cli.py +++ b/ros2topic/test/test_cli.py @@ -874,7 +874,7 @@ def test_topic_bw(self): assert topic_command.wait_for_output(functools.partial( launch_testing.tools.expect_output, expected_lines=[ 'Subscribed to [/defaults]', - re.compile(r'\d{2} B/s from \d+ messages'), + re.compile(r'\d{2,3} B/s from \d+ messages'), re.compile(r'\s*Message size mean: \d{2} B min: \d{2} B max: \d{2} B') ], strict=True ), timeout=10)