Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Feb 20, 2024
1 parent 9429c98 commit 2cad7fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/test/olap/lru_cache_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ TEST_F(CacheTest, PruneIfLazyMode) {
auto pred3 = [](const LRUHandle* handle) -> bool {
return DecodeValue((void*)(handle->value)) <= 600;
};
EXPECT_EQ(3, cache.prune_if(pred3, true));
auto [pruned_count, pruned_size] = cache.prune_if(pred3, true);
EXPECT_EQ(3, pruned_count);
EXPECT_EQ(4, cache.get_usage());
}

Expand Down

0 comments on commit 2cad7fa

Please sign in to comment.