Skip to content

Commit

Permalink
Fix the switch return to ERROR due to recent change in return state o…
Browse files Browse the repository at this point in the history
…f switch_controllers
  • Loading branch information
saikishor committed Jan 6, 2025
1 parent 5b1771d commit 381e277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller_manager/test/test_release_interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ TEST_F(TestReleaseExclusiveInterfaces, test_exclusive_interface_switching_failur
ASSERT_EQ(std::future_status::timeout, switch_future.wait_for(std::chrono::milliseconds(100)))
<< "switch_controller should be blocking until next update cycle";
ControllerManagerRunner cm_runner(this);
EXPECT_EQ(controller_interface::return_type::OK, switch_future.get());
EXPECT_EQ(controller_interface::return_type::ERROR, switch_future.get());
ASSERT_EQ(
lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE,
abstract_test_controller1.c->get_lifecycle_state().id());
Expand Down

0 comments on commit 381e277

Please sign in to comment.