Skip to content

Commit 6ada976

Browse files
authored
Fix flaky TestExpendedPostingsCacheIsolation test (#6395)
Signed-off-by: alanprot <[email protected]>
1 parent 91ff8b4 commit 6ada976

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/ingester/ingester_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5134,6 +5134,11 @@ func TestExpendedPostingsCacheIsolation(t *testing.T) {
51345134
require.NoError(t, services.StartAndAwaitRunning(context.Background(), i))
51355135
defer services.StopAndAwaitTerminated(context.Background(), i) //nolint:errcheck
51365136

5137+
// Wait until the ingester is ACTIVE
5138+
test.Poll(t, 100*time.Millisecond, ring.ACTIVE, func() interface{} {
5139+
return i.lifecycler.GetState()
5140+
})
5141+
51375142
numberOfTenants := 100
51385143
wg := sync.WaitGroup{}
51395144

0 commit comments

Comments
 (0)