Skip to content

Commit

Permalink
Added feedback
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed May 25, 2021
1 parent 56884d7 commit f884ab1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MoveToHelper_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ class MoveToHelperTest : public testing::Test,
public: MoveToHelper moveToHelper;

public: bool isMoveCompleted = false;

public: const double kTimeout = 0.5;
};

void MoveToHelperTest::OnMoveToComplete()
{
isMoveCompleted = true;
this->isMoveCompleted = true;
}

void MoveToHelperTest::checkIsCompleted()
Expand All @@ -66,7 +68,7 @@ void MoveToHelperTest::checkIsCompleted()
auto seconds =
std::chrono::duration_cast<std::chrono::milliseconds>(
endTime - startTime).count() / 1000.0;
if (seconds > 0.5)
if (seconds > kTimeout)
break;
}
}
Expand Down

0 comments on commit f884ab1

Please sign in to comment.