aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/threading_service_config
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-28 21:00:02 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-28 21:00:02 +0000
commit28404151115ee6c02e7f061a96fd290d0aff38e7 (patch)
tree3d7b52eb80128d328859b8d91745a257e84c55b6 /searchcore/src/tests/proton/documentdb/threading_service_config
parent1a84b10c21e8ad8582ad3171507de2d43793efa0 (diff)
Ignore semiunbound-tasklimit. Use tasklimit instead.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/threading_service_config')
-rw-r--r--searchcore/src/tests/proton/documentdb/threading_service_config/threading_service_config_test.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/searchcore/src/tests/proton/documentdb/threading_service_config/threading_service_config_test.cpp b/searchcore/src/tests/proton/documentdb/threading_service_config/threading_service_config_test.cpp
index a3c031cd5c4..e05383387d6 100644
--- a/searchcore/src/tests/proton/documentdb/threading_service_config/threading_service_config_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/threading_service_config/threading_service_config_test.cpp
@@ -56,17 +56,11 @@ TEST_F("require that default task limit is set", Fixture)
EXPECT_EQUAL(500u, f.make(24).defaultTaskLimit());
}
-TEST_F("require that semiunbound task limit is scaled based on indexing threads", Fixture)
-{
- EXPECT_EQUAL(12500u, f.make(24).semiUnboundTaskLimit());
-}
-
namespace {
-void assertConfig(uint32_t exp_indexing_threads, uint32_t exp_default_task_limit, uint32_t exp_semi_unbound_task_limit, const ThreadingServiceConfig &config) {
+void assertConfig(uint32_t exp_indexing_threads, uint32_t exp_default_task_limit, const ThreadingServiceConfig &config) {
EXPECT_EQUAL(exp_indexing_threads, config.indexingThreads());
EXPECT_EQUAL(exp_default_task_limit, config.defaultTaskLimit());
- EXPECT_EQUAL(exp_semi_unbound_task_limit, config.semiUnboundTaskLimit());
}
}
@@ -74,11 +68,11 @@ void assertConfig(uint32_t exp_indexing_threads, uint32_t exp_default_task_limit
TEST_FF("require that config can be somewhat updated", Fixture(), Fixture(2, 1000, 100000))
{
auto cfg1 = f1.make(1);
- assertConfig(2u, 500u, 25000u, cfg1);
+ assertConfig(2u, 500u, cfg1);
const auto cfg2 = f2.make(13);
- assertConfig(3u, 1000u, 33333u, cfg2);
+ assertConfig(3u, 1000u, cfg2);
cfg1.update(cfg2);
- assertConfig(2u, 1000u, 33333u, cfg1); // Indexing threads not changed
+ assertConfig(2u, 1000u, cfg1); // Indexing threads not changed
}
TEST_MAIN()