Skip to content

Commit fcfaf43

Browse files
committed
extend instead of assign expanded_parameter_arguments in tests.
Distro A, OPSEC #4584. You may have additional rights; please see https://rosmilitary.org/faq/?category=ros-2-license Signed-off-by: matthew.lanting <[email protected]>
1 parent c3436aa commit fcfaf43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test_launch_ros/test/test_launch_ros/actions/test_node.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ def test_launch_node_with_parameter_descriptions(self):
186186
)
187187
self._assert_launch_no_errors([node_action])
188188

189+
expanded_parameter_arguments = []
189190
for node in node_action.ros_exec.nodes:
190-
expanded_parameter_arguments = node.expanded_parameter_arguments
191+
expanded_parameter_arguments.extend(node.expanded_parameter_arguments)
191192
assert len(expanded_parameter_arguments) == 5
192193
parameters = []
193194
for item, is_file in expanded_parameter_arguments:
@@ -224,8 +225,9 @@ def test_launch_node_with_parameter_dict(self):
224225
self._assert_launch_no_errors([node_action])
225226

226227
# Check the expanded parameters (will be written to a file).
228+
expanded_parameter_arguments = []
227229
for node in node_action.ros_exec.nodes:
228-
expanded_parameter_arguments = node.expanded_parameter_arguments
230+
expanded_parameter_arguments.extend(node.expanded_parameter_arguments)
229231
assert len(expanded_parameter_arguments) == 1
230232
file_path, is_file = expanded_parameter_arguments[0]
231233
assert is_file

0 commit comments

Comments
 (0)