diff --git a/joint_trajectory_controller/test/test_trajectory_controller_utils.hpp b/joint_trajectory_controller/test/test_trajectory_controller_utils.hpp index 874ad6a0be..b0c9ecb63b 100644 --- a/joint_trajectory_controller/test/test_trajectory_controller_utils.hpp +++ b/joint_trajectory_controller/test/test_trajectory_controller_utils.hpp @@ -364,9 +364,7 @@ class TrajectoryControllerTest : public ::testing::Test { if (traj_controller_) { - if ( - traj_controller_->get_lifecycle_state().id() == - lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE) + if (traj_controller_->get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE) { EXPECT_EQ( traj_controller_->get_node()->deactivate().id(),