diff --git a/routing/routing_integration_tests/osrm_route_test.cpp b/routing/routing_integration_tests/osrm_route_test.cpp index 33d783fa88..6f55a13eac 100644 --- a/routing/routing_integration_tests/osrm_route_test.cpp +++ b/routing/routing_integration_tests/osrm_route_test.cpp @@ -137,6 +137,13 @@ namespace {39.836562407458047, 65.774372510437971}, 239426.); } + UNIT_TEST(RussiaMoscowBelarusMinsk) + { + integration::CalculateRouteAndTestRouteLength(integration::GetOsrmComponents(), + MercatorBounds::FromLatLon(55.750650, 37.617673), {0., 0.}, + MercatorBounds::FromLatLon(53.902114, 27.562020), 712649.0); + } + // TODO OSRM offers a possible turn to a pedestrian road in this test. It's fixing right now. UNIT_TEST(UKRugbyStIvesRouteTest) { diff --git a/routing/routing_integration_tests/routing_test_tools.cpp b/routing/routing_integration_tests/routing_test_tools.cpp index ada841013b..fcf58d5c8d 100644 --- a/routing/routing_integration_tests/routing_test_tools.cpp +++ b/routing/routing_integration_tests/routing_test_tools.cpp @@ -91,9 +91,14 @@ namespace integration return infoGetter.GetLimitRectForLeaf(countryId); }; - shared_ptr numMwmIds = make_shared(); - for (LocalCountryFile const & f : localFiles) - numMwmIds->RegisterFile(f.GetCountryFile()); + auto numMwmIds = make_shared(); + for (auto const & f : localFiles) + { + auto const & countryFile = f.GetCountryFile(); + auto const mwmId = index.GetMwmIdByCountryFile(countryFile); + if (mwmId.GetInfo()->GetType() == MwmInfo::COUNTRY && countryFile.GetName() != "minsk-pass") + numMwmIds->RegisterFile(countryFile); + } auto carRouter = make_unique( index, countryFileGetter,