Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly test get_service_names_and_types_by_node in rclcpp_lifecycle (…
…#2599) The current `TestLifecycleServiceClient.get_service_names_and_types_by_node` test was using `LifecycleServiceClient`, which is just a normal `rclcpp::Node` with some `rclcpp::Client`s, to test `NodeGraph::get_service_names_and_types_by_node()`. However, `NodeGraph::get_service_names_and_types_by_node()` is for service servers, not clients. The test just ended up checking the built-in services of an `rclcpp::Node`, since it wasn't actually checking the names of the services, and not checking the clients of the `LifecycleServiceClient` or the built-in services of a `rclcpp_lifecycle::LifecycleNode`. I believe this was probably not the intention, since this is an `rclcpp_lifecycle` test. Instead, use an actual `rclcpp_lifecycle::LifecycleNode` and check its service servers by calling `NodeGraph::get_service_names_and_types_by_node()` through `LifecycleNode::get_service_names_and_types_by_node()`. Signed-off-by: Christophe Bedard <[email protected]>
- Loading branch information