Skip to content

Commit e03b383

Browse files
authored
Fix the test in here to use the topic name. (#566)
Signed-off-by: Chris Lalancette <[email protected]>
1 parent 84ce52f commit e03b383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ros2topic/test/test_echo_pub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ def publish_message():
302302
assert command.output, (
303303
'Echo CLI did not print incompatible QoS warning'
304304
)
305-
assert ('New publisher discovered on this topic, offering incompatible'
306-
' QoS.' in command.output), (
305+
assert ("New publisher discovered on topic '{}', offering incompatible"
306+
' QoS.'.format(topic) in command.output), (
307307
'Echo CLI did not print expected incompatible QoS warning'
308308
)
309309
finally:

0 commit comments

Comments
 (0)