From 7846efcea1b7537307dfc911d9c5078a3ee9b14a Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Mon, 26 Mar 2018 18:47:11 +0300 Subject: [PATCH] Routing integration test fixing for map 18.03.16 --- routing/routing_integration_tests/route_test.cpp | 13 +++++-------- routing/routing_integration_tests/turn_test.cpp | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/routing/routing_integration_tests/route_test.cpp b/routing/routing_integration_tests/route_test.cpp index b661506e7c..ce6f291cd1 100644 --- a/routing/routing_integration_tests/route_test.cpp +++ b/routing/routing_integration_tests/route_test.cpp @@ -23,7 +23,7 @@ namespace integration::CalculateRouteAndTestRouteLength( integration::GetVehicleComponents(), MercatorBounds::FromLatLon(55.66216, 37.63259), {0., 0.}, - MercatorBounds::FromLatLon(55.66237, 37.63560), 1700.); + MercatorBounds::FromLatLon(55.66237, 37.63560), 2320.); } UNIT_TEST(MoscowToSVOAirport) @@ -32,13 +32,10 @@ namespace integration::GetVehicleComponents(), MercatorBounds::FromLatLon(55.75100, 37.61790), {0., 0.}, MercatorBounds::FromLatLon(55.97310, 37.41460), 37284.); -// This test stopped working because of an error in the map. The error has been just fixed: -// https://www.openstreetmap.org/changeset/56686302 -// @TODO(bykoianko) The test should be uncommented for the next map build (after 170209). -// integration::CalculateRouteAndTestRouteLength( -// integration::GetVehicleComponents(), -// MercatorBounds::FromLatLon(55.97310, 37.41460), {0., 0.}, -// MercatorBounds::FromLatLon(55.75100, 37.61790), 39449.); + integration::CalculateRouteAndTestRouteLength( + integration::GetVehicleComponents(), + MercatorBounds::FromLatLon(55.97310, 37.41460), {0., 0.}, + MercatorBounds::FromLatLon(55.75100, 37.61790), 39449.); } // Restrictions tests. Check restrictions generation, if there are any errors. diff --git a/routing/routing_integration_tests/turn_test.cpp b/routing/routing_integration_tests/turn_test.cpp index daa6ff8d97..ed18b6e905 100644 --- a/routing/routing_integration_tests/turn_test.cpp +++ b/routing/routing_integration_tests/turn_test.cpp @@ -243,7 +243,7 @@ UNIT_TEST(RussiaMoscowPankratevskiPerBolshaySuharedskazPloschadTurnTest) TRouteResult const routeResult = integration::CalculateRoute(integration::GetVehicleComponents(), MercatorBounds::FromLatLon(55.77177, 37.63556), {0., 0.}, - MercatorBounds::FromLatLon(55.77203, 37.63705)); + MercatorBounds::FromLatLon(55.77209, 37.63707)); Route const & route = *routeResult.first; IRouter::ResultCode const result = routeResult.second;