From 69b805d8ff392fcfc77344cd3f384f81d51212a0 Mon Sep 17 00:00:00 2001 From: Christian Haudum Date: Thu, 4 Jul 2024 13:24:13 +0200 Subject: [PATCH] test: Fix flaky congestion test (#13410) Signed-off-by: Christian Haudum --- pkg/storage/chunk/client/congestion/controller_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/chunk/client/congestion/controller_test.go b/pkg/storage/chunk/client/congestion/controller_test.go index c280b22147..49edfe563a 100644 --- a/pkg/storage/chunk/client/congestion/controller_test.go +++ b/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)