Skip to content

Commit 540cedf

Browse files
committed
increase polling timeout for compactor tests to prevent flaky
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
1 parent ff02058 commit 540cedf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/compactor/compactor_paritioning_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ func TestPartitionCompactor_ShouldCompactOnlyUsersOwnedByTheInstanceOnShardingEn
12141214

12151215
// Wait until a run has been completed on each compactor
12161216
for _, c := range compactors {
1217-
cortex_testutil.Poll(t, 60*time.Second, true, func() any {
1217+
cortex_testutil.Poll(t, 120*time.Second, true, func() any {
12181218
return prom_testutil.ToFloat64(c.CompactionRunsCompleted) >= 1
12191219
})
12201220
}

pkg/compactor/compactor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ func TestCompactor_ShouldCompactOnlyUsersOwnedByTheInstanceOnShardingEnabledAndM
11611161

11621162
// Wait until a run has been completed on each compactor
11631163
for _, c := range compactors {
1164-
cortex_testutil.Poll(t, 120*time.Second, true, func() any {
1164+
cortex_testutil.Poll(t, 240*time.Second, true, func() any {
11651165
return prom_testutil.ToFloat64(c.CompactionRunsCompleted) >= 1
11661166
})
11671167
}

0 commit comments

Comments
 (0)