aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r--searchlib/src/tests/common/bitvector/bitvector_test.cpp8
-rw-r--r--searchlib/src/tests/predicate/simple_index_test.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/searchlib/src/tests/common/bitvector/bitvector_test.cpp b/searchlib/src/tests/common/bitvector/bitvector_test.cpp
index 79af28d20be..7a26202682b 100644
--- a/searchlib/src/tests/common/bitvector/bitvector_test.cpp
+++ b/searchlib/src/tests/common/bitvector/bitvector_test.cpp
@@ -654,8 +654,8 @@ TEST("requireThatGrowWorks")
EXPECT_EQUAL(4095u, v.writer().capacity());
EXPECT_EQUAL(3u, v.writer().countTrueBits());
- g.transferHoldLists(1);
- g.trimHoldLists(2);
+ g.assign_generation(1);
+ g.reclaim(2);
}
TEST("require that growable bit vectors keeps memory allocator")
@@ -676,8 +676,8 @@ TEST("require that growable bit vectors keeps memory allocator")
EXPECT_EQUAL(AllocStats(4, 1), stats);
v.writer().resize(1); // DO NOT TRY THIS AT HOME
EXPECT_EQUAL(AllocStats(5, 2), stats);
- g.transferHoldLists(1);
- g.trimHoldLists(2);
+ g.assign_generation(1);
+ g.reclaim(2);
}
TEST_MAIN() { TEST_RUN_ALL(); }
diff --git a/searchlib/src/tests/predicate/simple_index_test.cpp b/searchlib/src/tests/predicate/simple_index_test.cpp
index dfa8c12deec..7bf52680782 100644
--- a/searchlib/src/tests/predicate/simple_index_test.cpp
+++ b/searchlib/src/tests/predicate/simple_index_test.cpp
@@ -74,7 +74,7 @@ struct Fixture {
Fixture() : _generation_holder(), _limit_provider(),
_index(_generation_holder, _limit_provider, config) {}
~Fixture() {
- _generation_holder.clearHoldLists();
+ _generation_holder.reclaim_all();
}
SimpleIndex<MyData> &index() {
return _index;