Skip to content

Commit 6bdb30f

Browse files
committed
MB-40160: Fix expectation on mapped-mem in DefragmenterTest
By comment we expect mapped-mem at some step to be 70% of mapped-mem from some previous step. But in the actual check we enforce 80%, and then sometimes the test fails there by tiny error. I fix by enforcing the 70% as per comment. Change-Id: I400eb80b4bc5e974e8c07089e2ba294ee261672a Reviewed-on: http://review.couchbase.org/c/kv_engine/+/155938 Reviewed-by: Dave Rigby <[email protected]> Tested-by: Paolo Cocchi <[email protected]>
1 parent 97eec92 commit 6bdb30f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engines/ep/tests/module_tests/defragmenter_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ TEST_P(DefragmenterTest, DISABLED_MappedMemory) {
239239
const size_t current_mapped = mapped_2 - mapped_0;
240240
const size_t previous_mapped = mapped_1 - mapped_0;
241241

242-
EXPECT_GE(current_mapped, size_t(0.80 * double(previous_mapped)))
242+
EXPECT_GE(current_mapped, size_t(0.70 * double(previous_mapped)))
243243
<< "current_mapped memory (which is " << current_mapped
244-
<< ") is lower than 80% of previous mapped (which is "
244+
<< ") is lower than 70% of previous mapped (which is "
245245
<< previous_mapped << "). ";
246246

247247
// 3. Enable defragmenter and trigger defragmentation

0 commit comments

Comments
 (0)