Skip to content

Commit be135e6

Browse files
committed
Pre-commit
Signed-off-by: Naitik Pahwa <naitikpahwa18@users.noreply.github.com>
1 parent f4fbfaf commit be135e6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

controller_manager/test/test_spawner_unspawner.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,7 @@ TEST_F(TestLoadController, unload_on_kill_does_not_block_other_spawners)
617617
std::vector<std::string> active_controller_names;
618618
for (const auto & ctrl : cm_->get_loaded_controllers())
619619
{
620-
if (
621-
ctrl.c->get_lifecycle_state().id() ==
622-
lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE)
620+
if (ctrl.c->get_lifecycle_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE)
623621
{
624622
active_controller_names.push_back(ctrl.info.name);
625623
}
@@ -680,8 +678,7 @@ TEST_F(TestLoadController, unload_on_kill_does_not_block_other_spawners)
680678
int spawner_b_exit_code = std::system(spawner_b_cmd.c_str());
681679
EXPECT_EQ(spawner_b_exit_code, 0)
682680
<< "Spawner B should not be blocked by Spawner A's --unload-on-kill lock";
683-
ASSERT_THAT(
684-
get_active_controller_names(), testing::UnorderedElementsAre("ctrl_1", "ctrl_2"));
681+
ASSERT_THAT(get_active_controller_names(), testing::UnorderedElementsAre("ctrl_1", "ctrl_2"));
685682

686683
EXPECT_EQ(spawner_a_future.wait_for(std::chrono::seconds(0)), std::future_status::timeout)
687684
<< "Spawner A exited already; lock-contention scenario might not be exercised";

0 commit comments

Comments
 (0)