Skip to content

Commit d8c58ff

Browse files
committed
more restrictive test
1 parent db0aaa4 commit d8c58ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cachelib/allocator/tests/AllocatorMemoryTiersTest.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ class AllocatorMemoryTiersTest : public AllocatorTest<AllocatorT> {
115115
auto cid = 2;
116116
EXPECT_GT(1, perclassEstats[0][0][cid]);
117117
EXPECT_GT(1, perclassPstats[1][0][cid]);
118+
119+
auto slabStats = allocator->getAllocationClassStats(0,0,cid);
120+
ASSERT_GE(slabStats.approxFreePercent,10);
118121
}
119122

120123
void testMultiTiersValidMixed() {

0 commit comments

Comments
 (0)