Skip to content

Commit

Permalink
Add the part of checking the lifecycle state
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Nov 7, 2024
1 parent edfcfca commit ad6053a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ class TrajectoryControllerTest : public ::testing::Test
traj_controller_->get_lifecycle_state().id() ==
lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE)
{
traj_controller_->get_node()->deactivate();
EXPECT_EQ(
traj_controller_->get_node()->deactivate().id(),
lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE);
}
}
}
Expand Down

0 comments on commit ad6053a

Please sign in to comment.