diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-21 16:09:00 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-21 16:09:00 +0000 |
commit | 0eaa0c38dcba2fa024f3a93eb2cf8527612a8cd6 (patch) | |
tree | 5bdf8a50078afcf44429e7b0d3c06a0a1b4be70e /searchlib/src/tests/attribute/attributemanager/attributemanager_test.cpp | |
parent | c6b1d441fd9ee02e6213ed4b240b721ac1bb4666 (diff) |
Test that attributesconfig.attribute.maxuncommittedmemory is converted correctly.
Diffstat (limited to 'searchlib/src/tests/attribute/attributemanager/attributemanager_test.cpp')
-rw-r--r-- | searchlib/src/tests/attribute/attributemanager/attributemanager_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searchlib/src/tests/attribute/attributemanager/attributemanager_test.cpp b/searchlib/src/tests/attribute/attributemanager/attributemanager_test.cpp index d654be1c460..a32ab773ec1 100644 --- a/searchlib/src/tests/attribute/attributemanager/attributemanager_test.cpp +++ b/searchlib/src/tests/attribute/attributemanager/attributemanager_test.cpp @@ -232,6 +232,12 @@ TEST("require that config can be converted") } { CACA a; + EXPECT_EQUAL(130000u, CC::convert(a).getMaxUnCommittedMemory()); + a.maxuncommittedmemory = 23523; + EXPECT_EQUAL(23523u, CC::convert(a).getMaxUnCommittedMemory()); + } + { + CACA a; EXPECT_TRUE(!CC::convert(a).isMutable()); a.ismutable = true; EXPECT_TRUE(CC::convert(a).isMutable()); |