Skip to content

Commit a1bb865

Browse files
author
Andrzej Religa
committed
Bug#35604144 routertest_component_metadata_ttl takes very long time to execute
routertest_component_metadata_ttl has 6 suites with 106 testcases which on MacOS takes almost 5 minutes to run. Most of those tests are not directly related to testing metatada_cache.ttl configuration option. This patch splits the test into 4 files that can be run in parallel: runtime_output_directory/routertest_component_metadata_ttl 18 tests from 3 test suites ran. (17492 ms total) runtime_output_directory/routertest_component_cluster_metadata 50 tests from 11 test suites ran. (99067 ms total) runtime_output_directory/routertest_component_gr_state 16 tests from 4 test suites ran. (12528 ms total) runtime_output_directory/routertest_component_node_attributes 22 tests from 8 test suites ran. (101166 ms total) Change-Id: I3fe2978b061eff885d85c85a1b7bfd00dbcf8ea0
1 parent b657b46 commit a1bb865

File tree

8 files changed

+3245
-2784
lines changed

8 files changed

+3245
-2784
lines changed

router/tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ SET(helper_sources
3434
helpers/router_component_test.cc
3535
helpers/router_component_testutils.cc
3636
helpers/router_component_system_layout.cc
37+
helpers/router_component_metadata.cc
3738
helpers/router_test_helpers.cc
3839
helpers/script_generator.cc
3940
helpers/shared_server.cc

router/tests/component/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ FOREACH(test_file
5959
test_logging_eventlog.cc
6060
test_master_key_reader_writer.cc
6161
test_metadata_ttl.cc
62+
test_cluster_metadata.cc
63+
test_node_attributes.cc
64+
test_gr_state.cc
6265
test_pidfile.cc
6366
test_read_replica.cc
6467
test_rest_api.cc

router/tests/component/test_cluster_metadata.cc

Lines changed: 1399 additions & 0 deletions
Large diffs are not rendered by default.

router/tests/component/test_gr_state.cc

Lines changed: 516 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)