diff --git a/map/mwm_tests/mwm_foreach_test.cpp b/map/mwm_tests/mwm_foreach_test.cpp index f9bf63dfa4..13ce55aac5 100644 --- a/map/mwm_tests/mwm_foreach_test.cpp +++ b/map/mwm_tests/mwm_foreach_test.cpp @@ -253,6 +253,8 @@ void RunTest(string const & countryFileName) src1.InitClassificator(); platform::LocalCountryFile localFile(platform::LocalCountryFile::MakeForTesting(countryFileName)); + // Clean indexes to avoid jenkins errors. + platform::CountryIndexes::DeleteFromDisk(localFile); UNUSED_VALUE(src1.RegisterMap(localFile)); vector rects; diff --git a/search/search_tests/house_detector_tests.cpp b/search/search_tests/house_detector_tests.cpp index b8847e3179..8c85879d13 100644 --- a/search/search_tests/house_detector_tests.cpp +++ b/search/search_tests/house_detector_tests.cpp @@ -10,6 +10,9 @@ #include "platform/platform.hpp" +#include "platform/local_country_file.hpp" +#include "platform/local_country_file_utils.hpp" + #include "geometry/distance_on_sphere.hpp" #include "base/logging.hpp" @@ -185,7 +188,11 @@ UNIT_TEST(HS_StreetsMerge) classificator::Load(); Index index; - auto const p = index.Register(LocalCountryFile::MakeForTesting("minsk-pass")); + LocalCountryFile localFile(LocalCountryFile::MakeForTesting("minsk-pass")); + // Clean indexes to avoid jenkins errors. + platform::CountryIndexes::DeleteFromDisk(localFile); + + auto const p = index.Register(localFile); TEST(p.first.IsAlive(), ()); TEST_EQUAL(MwmSet::RegResult::Success, p.second, ());