Skip to content

Commit

Permalink
Fix Minimize Token flaky test (#6058)
Browse files Browse the repository at this point in the history
Signed-off-by: alanprot <[email protected]>
  • Loading branch information
alanprot authored Jul 3, 2024
1 parent ea7a076 commit 492962e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ring/token_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func TestMinimizeSpreadTokenGenerator(t *testing.T) {
tokens = minimizeTokenGenerator.GenerateTokens(rindDesc, "pendingIngester-1-az-2", zones[1], 512, false)
require.Len(t, tokens, 512)
require.Equal(t, mTokenGenerator.called, 1)
// Lets remove this pending ingester to no interfere with the next tests
rindDesc.RemoveIngester("pendingIngester-1-az-2")

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

0 comments on commit 492962e

Please sign in to comment.