test: Fix flaky congestion test (#13410)

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
pull/13417/head
Christian Haudum 11 months ago committed by GitHub
parent 47f6ea53fc
commit 69b805d8ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/storage/chunk/client/congestion/controller_test.go

@ -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)

Loading…
Cancel
Save