Skip to content

Commit aafc4e4

Browse files
authored
Merge branch 'main' into main
2 parents f0f5943 + ae7a66a commit aafc4e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/paimon/core/mergetree/lookup_levels_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,8 @@ TEST_F(LookupLevelsTest, TestCacheEvictionByExpiration) {
884884
ASSERT_OK_AND_ASSIGN(std::shared_ptr<Levels> levels,
885885
Levels::Create(key_comparator, files, /*num_levels=*/3));
886886

887-
// Create a cache with a very short expiration (50ms).
888-
auto expiring_cache = LookupFile::CreateLookupFileCache(/*file_retention_ms=*/50,
887+
// Create a cache with a very short expiration (300ms).
888+
auto expiring_cache = LookupFile::CreateLookupFileCache(/*file_retention_ms=*/300,
889889
/*max_disk_size=*/INT64_MAX);
890890
ASSERT_OK_AND_ASSIGN(auto lookup_levels,
891891
CreateLookupLevels(table_path, levels, expiring_cache));
@@ -905,7 +905,7 @@ TEST_F(LookupLevelsTest, TestCacheEvictionByExpiration) {
905905
ASSERT_EQ(expiring_cache->Size(), 2);
906906

907907
// Wait for entries to expire.
908-
std::this_thread::sleep_for(std::chrono::milliseconds(80));
908+
std::this_thread::sleep_for(std::chrono::milliseconds(500));
909909

910910
// Entries should be expired now. GetIfPresent triggers expiration check.
911911
ASSERT_FALSE(expiring_cache->GetIfPresent(file0->file_name).has_value());

0 commit comments

Comments
 (0)