Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to expect no launch_ros node #474

Merged
merged 1 commit into from
Mar 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ros2node/test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def test_list_node_count(self):
assert node_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = node_command.output.splitlines()
assert len(output_lines) == 1
# Fixture nodes that are not hidden plus launch_ros node.
assert int(output_lines[0]) == 2
# Fixture nodes that are not hidden.
assert int(output_lines[0]) == 1

@launch_testing.markers.retry_on_failure(times=5, delay=1)
def test_list_all_nodes_count(self):
Expand All @@ -149,8 +149,8 @@ def test_list_all_nodes_count(self):
assert node_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = node_command.output.splitlines()
assert len(output_lines) == 1
# All fixture nodes plus launch_ros and ros2cli daemon nodes.
assert int(output_lines[0]) == 4
# All fixture nodes plus ros2cli daemon node.
assert int(output_lines[0]) == 3

@launch_testing.markers.retry_on_failure(times=5, delay=1)
def test_info_node(self):
Expand Down
2 changes: 1 addition & 1 deletion ros2service/test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def test_list_count(self):
assert service_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = service_command.output.splitlines()
assert len(output_lines) == 1
assert int(output_lines[0]) == 7 + 6 # cope with launch_ros internal node.
assert int(output_lines[0]) == 7

@launch_testing.markers.retry_on_failure(times=5, delay=1)
def test_find(self):
Expand Down