Skip to content

Commit 381e277

Browse files
committed
Fix the switch return to ERROR due to recent change in return state of switch_controllers
1 parent 5b1771d commit 381e277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller_manager/test/test_release_interfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ TEST_F(TestReleaseExclusiveInterfaces, test_exclusive_interface_switching_failur
250250
ASSERT_EQ(std::future_status::timeout, switch_future.wait_for(std::chrono::milliseconds(100)))
251251
<< "switch_controller should be blocking until next update cycle";
252252
ControllerManagerRunner cm_runner(this);
253-
EXPECT_EQ(controller_interface::return_type::OK, switch_future.get());
253+
EXPECT_EQ(controller_interface::return_type::ERROR, switch_future.get());
254254
ASSERT_EQ(
255255
lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE,
256256
abstract_test_controller1.c->get_lifecycle_state().id());

0 commit comments

Comments
 (0)