-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp the test_load_composable_nodes test. (#403)
* Revamp the test_load_composable_nodes test. In particular, it made little sense to do an rclpy.init in a class that inherited from rclpy.node.Node. Instead, flip this around and make the mock_component_container responsible for creating the context, doing rclpy.init, creating the node, spinning the executor, and tearing it all down. Note that this uses the new rclpy.init context manager as well, which reduces the amount of code we need here. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
5856482
commit dbc2bbc
Showing
1 changed file
with
16 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters