Skip to content

Commit 31191b4

Browse files
committed
Fix the switch return to ERROR due to recent change in return state of switch_controllers
1 parent 1c513a7 commit 31191b4

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
@@ -372,7 +372,7 @@ TEST_F(TestReleaseExclusiveInterfaces, test_exclusive_interface_switching_failur
372372
ASSERT_EQ(std::future_status::timeout, switch_future.wait_for(std::chrono::milliseconds(100)))
373373
<< "switch_controller should be blocking until next update cycle";
374374
ControllerManagerRunner cm_runner(this);
375-
EXPECT_EQ(controller_interface::return_type::OK, switch_future.get());
375+
EXPECT_EQ(controller_interface::return_type::ERROR, switch_future.get());
376376
ASSERT_EQ(
377377
lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE,
378378
abstract_test_controller1.c->get_lifecycle_state().id());

0 commit comments

Comments
 (0)