diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-12-06 15:10:01 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-12-06 15:11:57 +0000 |
commit | 3ca3bd4cc8afefeacf87de853d9a58fdf2408b11 (patch) | |
tree | deedd4f69c0fb8c7a4031309834d63855356da2d /searchcore/src/tests/proton/attribute | |
parent | c36a4c0566cf4f1ee75228687aa6fe1a977e1a7e (diff) |
Report transient resource usage for all attributes and document meta store.
Diffstat (limited to 'searchcore/src/tests/proton/attribute')
-rw-r--r-- | searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp index 0e3445d0785..a66785cb567 100644 --- a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp +++ b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp @@ -865,6 +865,15 @@ TEST_F("require that shrink flushtarget is handed over to new attribute manager" EXPECT_EQUAL(am1->getShrinker("a1"), am3->getShrinker("a1")); } +TEST_F("transient resource usage is zero in steady state", Fixture) +{ + f.addAttribute("a1"); + f.addAttribute("a2"); + auto usage = f._m.get_transient_resource_usage(); + EXPECT_EQUAL(0u, usage.disk()); + EXPECT_EQUAL(0u, usage.memory()); +} + TEST_MAIN() { std::filesystem::remove_all(std::filesystem::path(test_dir)); |