Skip to content

Commit 492962e

Browse files
authored
Fix Minimize Token flaky test (#6058)
Signed-off-by: alanprot <[email protected]>
1 parent ea7a076 commit 492962e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: pkg/ring/token_generator_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ func TestMinimizeSpreadTokenGenerator(t *testing.T) {
115115
tokens = minimizeTokenGenerator.GenerateTokens(rindDesc, "pendingIngester-1-az-2", zones[1], 512, false)
116116
require.Len(t, tokens, 512)
117117
require.Equal(t, mTokenGenerator.called, 1)
118+
// Lets remove this pending ingester to no interfere with the next tests
119+
rindDesc.RemoveIngester("pendingIngester-1-az-2")
118120

119121
// Should generate tokens only for the ingesters with the smaller registered time when multiples
120122
// ingesters does not have tokens

0 commit comments

Comments
 (0)