diff --git a/be/test/olap/lru_cache_test.cpp b/be/test/olap/lru_cache_test.cpp index 2677abc8ea80b4..ac27af082a73f8 100644 --- a/be/test/olap/lru_cache_test.cpp +++ b/be/test/olap/lru_cache_test.cpp @@ -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()); }