From ef30a19cd1651e2b393e049a1233ace3d2fdc3c9 Mon Sep 17 00:00:00 2001 From: JaySon-Huang Date: Sun, 19 Jun 2022 16:13:38 +0800 Subject: [PATCH] remove ut Signed-off-by: JaySon-Huang --- .../src/Server/tests/gtest_storage_config.cpp | 55 ------------------- 1 file changed, 55 deletions(-) diff --git a/dbms/src/Server/tests/gtest_storage_config.cpp b/dbms/src/Server/tests/gtest_storage_config.cpp index 8e31031b5bf..65af1d833f0 100644 --- a/dbms/src/Server/tests/gtest_storage_config.cpp +++ b/dbms/src/Server/tests/gtest_storage_config.cpp @@ -616,60 +616,5 @@ dt_enable_rough_set_filter = false } CATCH -TEST_F(StorageConfigTest, CompatibilityWithIORateLimitConfig) -try -{ - Strings tests = { - R"( -path = "/tmp/tiflash/data/db0/,/tmp/tiflash/data/db1/" -[storage] -format_version = 123 -lazily_init_store = 1 -)", - R"( -path = "/tmp/tiflash/data/db0/,/tmp/tiflash/data/db1/" -[storage] -format_version = 123 -lazily_init_store = 1 -[storage.main] -dir = [ "/data0/tiflash/", "/data1/tiflash/" ] -)", - R"( -path = "/data0/tiflash/,/data1/tiflash/" -[storage] -format_version = 123 -lazily_init_store = 1 -[storage.io_rate_limit] -max_bytes_per_sec=1024000 -)", - }; - - for (size_t i = 0; i < tests.size(); ++i) - { - const auto & test_case = tests[i]; - auto config = loadConfigFromString(test_case); - LOG_INFO(log, "parsing [index=" << i << "] [content=" << test_case << "]"); - auto [global_capacity_quota, storage] = TiFlashStorageConfig::parseSettings(*config, log); - std::ignore = global_capacity_quota; - Strings paths; - if (i == 0) - { - paths = Strings{"/tmp/tiflash/data/db0/", "/tmp/tiflash/data/db1/"}; - } - else if (i == 1) - { - paths = Strings{"/data0/tiflash/", "/data1/tiflash/"}; - } - else if (i == 2) - { - paths = Strings{"/data0/tiflash/", "/data1/tiflash/"}; - } - ASSERT_EQ(storage.main_data_paths, paths); - ASSERT_EQ(storage.format_version, 123); - ASSERT_EQ(storage.lazily_init_store, 1); - } -} -CATCH - } // namespace tests } // namespace DB