Skip to content

Commit 079392b

Browse files
authored
Fix spawner tests timeout (#1692)
1 parent 0631e3e commit 079392b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controller_manager/test/test_spawner_unspawner.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ TEST_F(TestLoadController, spawner_test_type_in_params_file)
255255
const std::string test_file_path = ament_index_cpp::get_package_prefix("controller_manager") +
256256
"/test/test_controller_spawner_with_type.yaml";
257257

258+
ControllerManagerRunner cm_runner(this);
258259
// Provide controller type via the parsed file
259260
EXPECT_EQ(
260261
call_spawner(
@@ -306,6 +307,7 @@ TEST_F(TestLoadController, unload_on_kill)
306307
{
307308
// Launch spawner with unload on kill
308309
// timeout command will kill it after the specified time with signal SIGINT
310+
ControllerManagerRunner cm_runner(this);
309311
cm_->set_parameter(rclcpp::Parameter("ctrl_3.type", test_controller::TEST_CONTROLLER_CLASS_NAME));
310312
std::stringstream ss;
311313
ss << "timeout --signal=INT 5 "
@@ -622,6 +624,7 @@ TEST_F(TestLoadControllerWithNamespacedCM, spawner_test_type_in_params_file)
622624
const std::string test_file_path = ament_index_cpp::get_package_prefix("controller_manager") +
623625
"/test/test_controller_spawner_with_type.yaml";
624626

627+
ControllerManagerRunner cm_runner(this);
625628
// Provide controller type via the parsed file
626629
EXPECT_EQ(
627630
call_spawner(
@@ -682,6 +685,7 @@ TEST_F(
682685
const std::string test_file_path = ament_index_cpp::get_package_prefix("controller_manager") +
683686
"/test/test_controller_spawner_with_type.yaml";
684687

688+
ControllerManagerRunner cm_runner(this);
685689
// Provide controller type via the parsed file
686690
EXPECT_EQ(
687691
call_spawner(

0 commit comments

Comments
 (0)