From 2cad7fab9906ac126e9ef550d8701cf491cb3fd8 Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Tue, 20 Feb 2024 16:11:14 +0800 Subject: [PATCH] 2 --- be/test/olap/lru_cache_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); }