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 3456e9d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/test/action_service_impl_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ TEST_P(ActionServiceImplTest, getsCorrectTakeoffAltitude)
{
MockAction action;
ActionServiceImpl actionService(action);
const auto expected_pair =
std::make_pair<>(dronecode_sdk::ActionResult::SUCCESS, ARBITRARY_ALTITUDE);
const auto expected_pair = 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 @@ -338,8 +337,7 @@ TEST_P(ActionServiceImplTest, getMaxSpeedGetsRightValue)
{
MockAction action;
ActionServiceImpl actionService(action);
const auto expected_pair =
std::make_pair<>(dronecode_sdk::ActionResult::SUCCESS, ARBITRARY_SPEED);
const auto expected_pair = 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 3456e9d

Please sign in to comment.