Skip to content

Commit f57d8bd

Browse files
committed
Bump ros2 action info timeout.
Signed-off-by: Michel Hidalgo <[email protected]>
1 parent 0b0b735 commit f57d8bd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ros2action/test/test_cli.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def launch_action_command(self, arguments):
124124

125125
def test_info_on_nonexistent_action(self):
126126
with self.launch_action_command(arguments=['info', '/not_an_action']) as action_command:
127-
assert action_command.wait_for_shutdown(timeout=10)
127+
timeout = 20 if os.name == 'nt' else 10 # ros2 action info is slower on Windows
128+
assert action_command.wait_for_shutdown(timeout=timeout)
128129
assert action_command.exit_code == launch_testing.asserts.EXIT_OK
129130
assert launch_testing.tools.expect_output(
130131
expected_lines=[
@@ -139,7 +140,8 @@ def test_info_on_nonexistent_action(self):
139140
@launch_testing.markers.retry_on_failure(times=5, delay=1)
140141
def test_fibonacci_info(self):
141142
with self.launch_action_command(arguments=['info', '/fibonacci']) as action_command:
142-
assert action_command.wait_for_shutdown(timeout=10)
143+
timeout = 20 if os.name == 'nt' else 10 # ros2 action info is slower on Windows
144+
assert action_command.wait_for_shutdown(timeout=timeout)
143145
assert action_command.exit_code == launch_testing.asserts.EXIT_OK
144146
assert launch_testing.tools.expect_output(
145147
expected_lines=[
@@ -155,7 +157,8 @@ def test_fibonacci_info(self):
155157
@launch_testing.markers.retry_on_failure(times=5, delay=1)
156158
def test_fibonacci_info_with_types(self):
157159
with self.launch_action_command(arguments=['info', '-t', '/fibonacci']) as action_command:
158-
assert action_command.wait_for_shutdown(timeout=10)
160+
timeout = 20 if os.name == 'nt' else 10 # ros2 action info is slower on Windows
161+
assert action_command.wait_for_shutdown(timeout=timeout)
159162
assert action_command.exit_code == launch_testing.asserts.EXIT_OK
160163
assert launch_testing.tools.expect_output(
161164
expected_lines=[
@@ -171,7 +174,8 @@ def test_fibonacci_info_with_types(self):
171174
@launch_testing.markers.retry_on_failure(times=5, delay=1)
172175
def test_fibonacci_info_count(self):
173176
with self.launch_action_command(arguments=['info', '-c', '/fibonacci']) as action_command:
174-
assert action_command.wait_for_shutdown(timeout=10)
177+
timeout = 20 if os.name == 'nt' else 10 # ros2 action info is slower on Windows
178+
assert action_command.wait_for_shutdown(timeout=timeout)
175179
assert action_command.exit_code == launch_testing.asserts.EXIT_OK
176180
assert launch_testing.tools.expect_output(
177181
expected_lines=[

0 commit comments

Comments
 (0)