[routing] Fix tests

This commit is contained in:
Mikhail Gorbushin 2019-08-27 19:13:06 +03:00 committed by Vladimir Byko-Ianko
parent 0eba1a010e
commit ed89224cd1

View file

@ -229,6 +229,7 @@ UNIT_CLASS_TEST(AsyncGuiThreadTestWithRoutingSession, TestRouteRebuildingMovingA
GetPlatform().RunTask(Platform::Thread::Gui, [&checkTimedSignal, &info, this]() {
info.m_longitude = 0.;
info.m_latitude = 1.;
info.m_speedMpS = routing::KMPH2MPS(60);
SessionState code = SessionState::RoutingNotActive;
for (size_t i = 0; i < 10; ++i)
{
@ -274,6 +275,7 @@ UNIT_CLASS_TEST(AsyncGuiThreadTestWithRoutingSession, TestRouteRebuildingMovingT
GetPlatform().RunTask(Platform::Thread::Gui, [&checkTimedSignalAway, &info, this]() {
info.m_longitude = 0.0;
info.m_latitude = 0.0;
info.m_speedMpS = routing::KMPH2MPS(60);
SessionState code = SessionState::RoutingNotActive;
{
SessionStateTest sessionStateTest(
@ -352,6 +354,7 @@ UNIT_CLASS_TEST(AsyncGuiThreadTestWithRoutingSession, TestFollowRouteFlagPersist
TEST(m_session->IsFollowing(), ());
info.m_longitude = 0.;
info.m_latitude = 1.;
info.m_speedMpS = routing::KMPH2MPS(60);
SessionState code = SessionState::RoutingNotActive;
for (size_t i = 0; i < 10; ++i)
{