Skip to content

Commit

Permalink
test: Fix flaky congestion test (#13410)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Haudum <[email protected]>
  • Loading branch information
chaudum authored Jul 4, 2024
1 parent 47f6ea5 commit 69b805d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/chunk/client/congestion/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ func TestAIMDReducedThroughput(t *testing.T) {
require.Less(t, count, previousCount)
require.Less(t, success, previousSuccess)

// should have fewer successful requests than total since we are failing some
require.Less(t, success, count)
// should have fewer successful requests than total since we may be failing some
require.LessOrEqual(t, success, count)

// should have registered some congestion latency in stats
require.NotZero(t, statsCtx.Store().CongestionControlLatency)
Expand Down

0 comments on commit 69b805d

Please sign in to comment.