Skip to content

Commit 2f819bc

Browse files
committed
Fix failing tests on Linux
Signed-off-by: Michel Hidalgo <[email protected]>
1 parent a12d6e6 commit 2f819bc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ros2interface/test/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import contextlib
1616
import itertools
1717
import re
18+
import sys
1819
import unittest
1920

2021
from launch import LaunchDescription

ros2topic/test/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,8 @@ def test_topic_bw(self):
759759
assert topic_command.wait_for_output(functools.partial(
760760
launch_testing.tools.expect_output, expected_lines=[
761761
'Subscribed to [/defaults]',
762-
re.compile(r'\d{2} B/s from \d+ messages'),
763-
re.compile(r'\s*Message size mean: \d{2} B min: \d{2} B max: \d{2} B')
762+
re.compile(r'\d{2,3} B/s from \d+ messages'),
763+
re.compile(r'\s*Message size mean: \d{2,3} B min: \d{2,3} B max: \d{2,3} B')
764764
], strict=True
765765
), timeout=10)
766766
assert topic_command.wait_for_shutdown(timeout=10)

0 commit comments

Comments
 (0)