aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-12-06 15:10:01 +0000
committerGeir Storli <geirst@yahooinc.com>2022-12-06 15:11:57 +0000
commit3ca3bd4cc8afefeacf87de853d9a58fdf2408b11 (patch)
treedeedd4f69c0fb8c7a4031309834d63855356da2d /searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
parentc36a4c0566cf4f1ee75228687aa6fe1a977e1a7e (diff)
Report transient resource usage for all attributes and document meta store.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
index 12477469e04..43717fc724f 100644
--- a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
@@ -749,6 +749,13 @@ TEST_F("require that flush targets can be retrieved", SearchableFixture)
EXPECT_TRUE(assertTarget("subdb.summary.shrink", FType::GC, FComponent::DOCUMENT_STORE, *targets[9]));
}
+TEST_F("transient resource usage is zero in steady state", SearchableFixture)
+{
+ auto usage = f._subDb.get_transient_resource_usage();
+ EXPECT_EQUAL(0u, usage.disk());
+ EXPECT_EQUAL(0u, usage.memory());
+}
+
TEST_F("require that only fast-access attributes are instantiated", FastAccessOnlyFixture)
{
std::vector<AttributeGuard> attrs;