Skip to content

Commit

Permalink
Fix special case for fastrtps incompatible QoS. (#694)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
  • Loading branch information
clalancette authored Feb 22, 2022
1 parent 0479d5d commit ca567d5
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions ros2topic/test/test_echo_pub.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,20 +286,13 @@ def publish_message():
'Echo CLI did not print expected message'
)
else:
# TODO(mm318): remove special case for FastRTPS when
# https://github.com/ros2/rmw_fastrtps/issues/356 is resolved
if 'rmw_fastrtps' in get_rmw_implementation_identifier():
assert not command.output, (
'Echo CLI should not have received anything with incompatible QoS'
)
else:
assert command.output, (
'Echo CLI did not print incompatible QoS warning'
assert command.output, (
'Echo CLI did not print incompatible QoS warning'
)
assert ("New publisher discovered on topic '{}', offering incompatible"
' QoS.'.format(topic) in command.output), (
'Echo CLI did not print expected incompatible QoS warning'
)
assert ("New publisher discovered on topic '{}', offering incompatible"
' QoS.'.format(topic) in command.output), (
'Echo CLI did not print expected incompatible QoS warning'
)
finally:
# Cleanup
self.node.destroy_timer(publish_timer)
Expand Down

0 comments on commit ca567d5

Please sign in to comment.