Skip to content

Commit

Permalink
Fix test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Jan 15, 2024
1 parent e7bdd1a commit d971dfc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions controller_manager/test/test_hardware_management_srvs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ class TestControllerManagerHWManagementSrvsWithoutParams
"Unable to initialize resource manager, no robot description found.");
}

cm_->init_resource_manager(robot_description);
auto msg = std_msgs::msg::String();
msg.data = robot_description;
cm_->robot_description_callback(msg);

SetUpSrvsCMExecutor();
}
Expand Down Expand Up @@ -442,7 +444,9 @@ class TestControllerManagerHWManagementSrvsOldParameters
"Unable to initialize resource manager, no robot description found.");
}

cm_->init_resource_manager(robot_description);
auto msg = std_msgs::msg::String();
msg.data = robot_description;
cm_->robot_description_callback(msg);

SetUpSrvsCMExecutor();
}
Expand Down

0 comments on commit d971dfc

Please sign in to comment.