Skip to content

Commit bf3c96a

Browse files
committed
Fix tests.
1 parent d46c412 commit bf3c96a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller_manager/test/test_spawner_unspawner.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ TEST_F(TestLoadControllerWithoutRobotDescription, when_no_robot_description_spaw
327327
cm_->set_parameter(rclcpp::Parameter("ctrl_1.type", test_controller::TEST_CONTROLLER_CLASS_NAME));
328328

329329
ControllerManagerRunner cm_runner(this);
330-
EXPECT_EQ(call_spawner("ctrl_1 -c test_controller_manager"), 1)
330+
EXPECT_EQ(call_spawner("ctrl_1 -c test_controller_manager"), 256)
331331
<< "could not spawn controller because not robot description and not services for controller "
332332
"manager are active";
333333
}
@@ -340,10 +340,10 @@ TEST_F(
340340

341341
// Delay sending robot description
342342
robot_description_sending_timer_ = cm_->create_wall_timer(
343-
std::chrono::milliseconds(1500), [&]() { pass_robot_description_to_cm_and_rm(); });
343+
std::chrono::milliseconds(2500), [&]() { pass_robot_description_to_cm_and_rm(); });
344344

345345
ControllerManagerRunner cm_runner(this);
346-
EXPECT_EQ(call_spawner("ctrl_1 -c test_controller_manager"), 1)
346+
EXPECT_EQ(call_spawner("ctrl_1 -c test_controller_manager"), 0)
347347
<< "could not activate control because not robot description";
348348

349349
ASSERT_EQ(cm_->get_loaded_controllers().size(), 1ul);

0 commit comments

Comments
 (0)