diff --git a/ros2topic/test/fixtures/listener_node.py b/ros2topic/test/fixtures/listener_node.py index f6355ddff..71fa79b9f 100644 --- a/ros2topic/test/fixtures/listener_node.py +++ b/ros2topic/test/fixtures/listener_node.py @@ -26,7 +26,8 @@ class ListenerNode(Node): def __init__(self): super().__init__('listener') qos_profile = qos_profile_from_short_keys( - 'system_default', durability='transient_local') + 'system_default', durability='transient_local', + reliability='reliable') self.sub = self.create_subscription( String, 'chatter', self.callback, qos_profile ) diff --git a/ros2topic/test/test_cli.py b/ros2topic/test/test_cli.py index 15e278790..0173ff91c 100644 --- a/ros2topic/test/test_cli.py +++ b/ros2topic/test/test_cli.py @@ -563,6 +563,7 @@ def test_topic_pub(self): 'pub', '--keep-alive', '3', # seconds '--qos-durability', 'transient_local', + '--qos-reliability', 'reliable', '/chit_chatter', 'std_msgs/msg/String', '{data: foo}' @@ -588,6 +589,7 @@ def test_topic_pub_once(self): 'pub', '--once', '--keep-alive', '3', # seconds '--qos-durability', 'transient_local', + '--qos-reliability', 'reliable', '/chit_chatter', 'std_msgs/msg/String', '{data: bar}' @@ -615,6 +617,7 @@ def test_topic_pub_print_every_two(self): '-p', '2', '--keep-alive', '3', # seconds '--qos-durability', 'transient_local', + '--qos-reliability', 'reliable', '/chit_chatter', 'std_msgs/msg/String', '{data: fizz}'