Skip to content

Commit ae9a8e3

Browse files
author
Chen Lihui
authored
avoid flaky test that subscriber might not receive the message (#810)
increase publish times as the publisher and subscriber are not using reliable QoS settings Signed-off-by: Chen Lihui <[email protected]>
1 parent 14e640c commit ae9a8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ros2topic/test/test_echo_pub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_pub_maxwait_malformed_arguments(self, launch_service, proc_info, proc_o
233233
def test_pub_maxwait_yields(self, launch_service, proc_info, proc_output):
234234
topic = '/clitest/topic/pub/max_wait_timeout'
235235
command_action = ExecuteProcess(
236-
cmd=(['ros2', 'topic', 'pub', '-t', '1', '--max-wait-time-secs', '20', topic,
236+
cmd=(['ros2', 'topic', 'pub', '-t', '10', '--max-wait-time-secs', '20', topic,
237237
'std_msgs/String', 'data: hello']),
238238
additional_env={
239239
'PYTHONUNBUFFERED': '1'

0 commit comments

Comments
 (0)