Skip to content

Commit

Permalink
backend: fix getsCorrectTakeoffAltitude and getMaxSpeedGetsRightValue…
Browse files Browse the repository at this point in the history
… unit tests
  • Loading branch information
JonasVautherin committed Jul 26, 2018
1 parent 7d15931 commit 601a2c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/test/action_service_impl_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ TEST_P(ActionServiceImplTest, getsCorrectTakeoffAltitude)
MockAction action;
ActionServiceImpl actionService(action);
const auto expected_pair =
std::make_pair<>(dronecode_sdk::ActionResult::SUCCESS, ARBITRARY_ALTITUDE);
std::make_pair<>(GetParam().second, ARBITRARY_ALTITUDE);
ON_CALL(action, get_takeoff_altitude()).WillByDefault(Return(expected_pair));
dronecode_sdk::rpc::action::GetTakeoffAltitudeResponse response;

Expand Down Expand Up @@ -339,7 +339,7 @@ TEST_P(ActionServiceImplTest, getMaxSpeedGetsRightValue)
MockAction action;
ActionServiceImpl actionService(action);
const auto expected_pair =
std::make_pair<>(dronecode_sdk::ActionResult::SUCCESS, ARBITRARY_SPEED);
std::make_pair<>(GetParam().second, ARBITRARY_SPEED);
ON_CALL(action, get_max_speed()).WillByDefault(Return(expected_pair));
dronecode_sdk::rpc::action::GetMaximumSpeedResponse response;

Expand Down

0 comments on commit 601a2c2

Please sign in to comment.