Skip to content

Commit 7d1be3c

Browse files
committed
Can not call 'cleanup' from 'active' state.
1 parent b51b3e1 commit 7d1be3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controller_manager/test/test_spawner_unspawner.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ TEST_F(TestLoadController, spawner_test_type_in_param)
103103
// Try to spawn again, it should fail because already active
104104
EXPECT_NE(call_spawner("ctrl_1 -c test_controller_manager"), 0) << "Cannot configure from active";
105105
ctrl_1.c->get_node()->deactivate();
106-
// We should be able to reconfigure and start a configured controller
106+
// We should be able to reconfigure and activate a configured controller
107107
EXPECT_EQ(call_spawner("ctrl_1 -c test_controller_manager"), 0);
108+
ctrl_1.c->get_node()->deactivate();
108109
ctrl_1.c->get_node()->cleanup();
109-
// We should be able to reconfigure and start am unconfigured loaded controller
110+
// We should be able to reconfigure and activate am unconfigured loaded controller
110111
EXPECT_EQ(call_spawner("ctrl_1 -c test_controller_manager"), 0);
111112
ASSERT_EQ(ctrl_1.c->get_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE);
112113

0 commit comments

Comments
 (0)