diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-02-15 18:58:46 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-02-15 18:58:46 +0000 |
commit | b431b431368bd75b892ec506f9a8891271bbb757 (patch) | |
tree | a1a73db8aaf71f6a8de5e858b702396de574cb10 /searchcore | |
parent | 662118630519d574d9a87a897c69532f94c1e3b0 (diff) |
use 4_Gi directly
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/tests/proton/server/memory_flush_config_updater/memory_flush_config_updater_test.cpp | 3 |
1 files changed, 1 insertions, 2 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 56feb8cf5f4..cff44631c6c 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 @@ -83,8 +83,7 @@ TEST("require that we use configured memory limits") { TEST("require that we cap configured limits based on available memory") { const uint64_t LIMIT = defaultMemory.sizeBytes()/4; - constexpr uint64_t MEM_4G = 4_Gi; - auto cfg = MemoryFlushConfigUpdater::convertConfig(getConfig(MEM_4G, MEM_4G, 30), defaultMemory); + auto cfg = MemoryFlushConfigUpdater::convertConfig(getConfig(4_Gi, 4_Gi, 30), defaultMemory); EXPECT_EQUAL(cfg.maxGlobalMemory, LIMIT); EXPECT_EQUAL(uint64_t(cfg.maxMemoryGain), LIMIT); } |