From 4ae12171c62062ee2847d15b305b71f12dd73991 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Fri, 18 May 2018 10:59:51 +0300 Subject: [PATCH] Fixing platform test LocalCountryFile_DiskFiles. --- platform/platform_tests/local_country_file_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform_tests/local_country_file_tests.cpp b/platform/platform_tests/local_country_file_tests.cpp index 77eb658236..b799a9cb61 100644 --- a/platform/platform_tests/local_country_file_tests.cpp +++ b/platform/platform_tests/local_country_file_tests.cpp @@ -112,17 +112,17 @@ UNIT_TEST(LocalCountryFile_DiskFiles) string const mapFileName = GetFileName(countryFile.GetName(), MapOptions::Map, version::FOR_TESTING_TWO_COMPONENT_MWM1); - ScopedFile testMapFile(mapFileName, ScopedFile::Mode::Create); + ScopedFile testMapFile(mapFileName, "map"); localFile.SyncWithDisk(); TEST(localFile.OnDisk(MapOptions::Map), ()); TEST(!localFile.OnDisk(MapOptions::CarRouting), ()); TEST(!localFile.OnDisk(MapOptions::MapWithCarRouting), ()); - TEST_EQUAL(3, localFile.GetSize(MapOptions::Map), ()); + TEST_EQUAL(3, localFile.GetSize(MapOptions::Map), ("Size of the content (word \"map\") should be 3.")); string const routingFileName = GetFileName(countryFile.GetName(), MapOptions::CarRouting, version::FOR_TESTING_TWO_COMPONENT_MWM1); - ScopedFile testRoutingFile(routingFileName, ScopedFile::Mode::Create); + ScopedFile testRoutingFile(routingFileName, "routing"); localFile.SyncWithDisk(); TEST(localFile.OnDisk(MapOptions::Map), ());