diff options
Diffstat (limited to 'searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp index d305cbf532b..994cbd86aa7 100644 --- a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp +++ b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp @@ -367,9 +367,14 @@ TEST_FF("require that docstore config computes cachesize automatically if unset" f1.protonBuilder.summary.cache.maxbytes = 2000; auto config = getDocumentDBConfig(f1, f2, hwInfo); EXPECT_EQUAL(2000ul, config->getStoreConfig().getMaxCacheBytes()); - f1.protonBuilder.summary.cache.maxbytes = -1; + + f1.protonBuilder.summary.cache.maxbytes = -7; + config = getDocumentDBConfig(f1, f2, hwInfo); + EXPECT_EQUAL(70000ul, config->getStoreConfig().getMaxCacheBytes()); + + f1.protonBuilder.summary.cache.maxbytes = -700; config = getDocumentDBConfig(f1, f2, hwInfo); - EXPECT_EQUAL(50000ul, config->getStoreConfig().getMaxCacheBytes()); + EXPECT_EQUAL(500000ul, config->getStoreConfig().getMaxCacheBytes()); } TEST_MAIN() { TEST_RUN_ALL(); } |