summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/server/memory_flush_config_updater
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-02-13 14:13:20 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-02-13 14:13:20 +0000
commitc123db5020dbe5e05bbb83b12d71b77b69c49b2f (patch)
tree7be0274cf563430ff812fbe5985b4f891b5d3af4 /searchcore/src/tests/proton/server/memory_flush_config_updater
parente2b02d3b7978d831293d88bc3c75c6582ef9418b (diff)
Move control of internal limits closer to where the limitation is.
Diffstat (limited to 'searchcore/src/tests/proton/server/memory_flush_config_updater')
-rw-r--r--searchcore/src/tests/proton/server/memory_flush_config_updater/memory_flush_config_updater_test.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/searchcore/src/tests/proton/server/memory_flush_config_updater/memory_flush_config_updater_test.cpp b/searchcore/src/tests/proton/server/memory_flush_config_updater/memory_flush_config_updater_test.cpp
index ff64d614169..23c0269f754 100644
--- a/searchcore/src/tests/proton/server/memory_flush_config_updater/memory_flush_config_updater_test.cpp
+++ b/searchcore/src/tests/proton/server/memory_flush_config_updater/memory_flush_config_updater_test.cpp
@@ -89,15 +89,6 @@ TEST("require that we cap configured limits based on available memory") {
EXPECT_EQUAL(uint64_t(cfg.maxMemoryGain), LIMIT);
}
-TEST("require that we cap configured limits based on the absolute 16G limit") {
- constexpr uint64_t LIMIT_16G = 16 * ONE_G;
- constexpr uint64_t MEM_64G = 64 * ONE_G;
- const HwInfo::Memory largeMemory(512 * ONE_G);
- auto cfg = MemoryFlushConfigUpdater::convertConfig(getConfig(MEM_64G, MEM_64G, 30), largeMemory);
- EXPECT_EQUAL(cfg.maxGlobalMemory, LIMIT_16G);
- EXPECT_EQUAL(uint64_t(cfg.maxMemoryGain), LIMIT_16G);
-}
-
TEST_F("require that strategy is updated with normal values if no limits are reached", Fixture)
{
f.updater.notifyDiskMemUsage(DiskMemUsageState());