diff --git a/src/paimon/core/mergetree/lookup_levels_test.cpp b/src/paimon/core/mergetree/lookup_levels_test.cpp index 31281367c..e88af52b0 100644 --- a/src/paimon/core/mergetree/lookup_levels_test.cpp +++ b/src/paimon/core/mergetree/lookup_levels_test.cpp @@ -884,8 +884,8 @@ TEST_F(LookupLevelsTest, TestCacheEvictionByExpiration) { ASSERT_OK_AND_ASSIGN(std::shared_ptr levels, Levels::Create(key_comparator, files, /*num_levels=*/3)); - // Create a cache with a very short expiration (50ms). - auto expiring_cache = LookupFile::CreateLookupFileCache(/*file_retention_ms=*/50, + // Create a cache with a very short expiration (300ms). + auto expiring_cache = LookupFile::CreateLookupFileCache(/*file_retention_ms=*/300, /*max_disk_size=*/INT64_MAX); ASSERT_OK_AND_ASSIGN(auto lookup_levels, CreateLookupLevels(table_path, levels, expiring_cache)); @@ -905,7 +905,7 @@ TEST_F(LookupLevelsTest, TestCacheEvictionByExpiration) { ASSERT_EQ(expiring_cache->Size(), 2); // Wait for entries to expire. - std::this_thread::sleep_for(std::chrono::milliseconds(80)); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); // Entries should be expired now. GetIfPresent triggers expiration check. ASSERT_FALSE(expiring_cache->GetIfPresent(file0->file_name).has_value());