diff --git a/openlr/openlr_tests/decoded_path_test.cpp b/openlr/openlr_tests/decoded_path_test.cpp index 55f6820eff..1139c3b178 100644 --- a/openlr/openlr_tests/decoded_path_test.cpp +++ b/openlr/openlr_tests/decoded_path_test.cpp @@ -121,10 +121,12 @@ void WithRoad(vector const & points, Func && fn) LocalCountryFile country(mwmPath, CountryFile(kTestMwm), 0 /* version */); ScopedDir testScopedDir(kTestDir); - ScopedFile testScopedMwm(mwmPath); // country.GetPath(MapOptions::Map)); + ScopedFile testScopedMwm(my::JoinPath(kTestDir, kTestMwm + DATA_FILE_EXTENSION)); - TestMwmBuilder builder(country, feature::DataHeader::country); - builder.Add(TestRoad(points, "Interstate 60", "en")); + { + TestMwmBuilder builder(country, feature::DataHeader::country); + builder.Add(TestRoad(points, "Interstate 60", "en")); + } Index index; auto const regResult = index.RegisterMap(country);