Skip to content

Commit

Permalink
Merge pull request #14 from fmrico/executor_explicit_removal
Browse files Browse the repository at this point in the history
Explicit removal of node from executor before destroy
  • Loading branch information
fmrico authored Oct 12, 2024
2 parents 427a7ac + 1a16a47 commit a043cd3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ TEST(rclcpp_cascade_lifecycle, activations_managing_late_joining)
ASSERT_TRUE(node_b->get_activations().empty());
ASSERT_EQ(node_b->get_activators().size(), 1u);

executor.remove_node(node_b->get_node_base_interface());
node_b = nullptr;

{
Expand Down Expand Up @@ -524,6 +525,7 @@ TEST(rclcpp_cascade_lifecycle, activators_disappearance)
ASSERT_EQ(node_a->get_current_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE);
ASSERT_EQ(node_b->get_current_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE);

executor.remove_node(node_a->get_node_base_interface());
node_a = nullptr;

{
Expand Down Expand Up @@ -1020,6 +1022,7 @@ TEST(rclcpp_cascade_lifecycle, activations_managing_late_joining_with_namespace)
ASSERT_TRUE(node_b->get_activations().empty());
ASSERT_EQ(node_b->get_activators().size(), 1u);

executor.remove_node(node_b->get_node_base_interface());
node_b = nullptr;

{
Expand Down Expand Up @@ -1441,6 +1444,7 @@ TEST(rclcpp_cascade_lifecycle, activators_disappearance_with_namespace)
ASSERT_EQ(node_a->get_current_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE);
ASSERT_EQ(node_b->get_current_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE);

executor.remove_node(node_a->get_node_base_interface());
node_a = nullptr;

{
Expand Down

0 comments on commit a043cd3

Please sign in to comment.