From 693efbc460e26a5eb74e436498124b9c34d14456 Mon Sep 17 00:00:00 2001 From: Marco Pracucci Date: Thu, 21 Nov 2024 03:00:34 -0500 Subject: [PATCH] Fix TestPartitionReader_ShouldNotMissRecordsIfFetchRequestContainPartialFailuresWithConcurrentFetcherIsUsed flakyness (#9967) Signed-off-by: Marco Pracucci --- pkg/storage/ingest/reader_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/storage/ingest/reader_test.go b/pkg/storage/ingest/reader_test.go index 3ac8c467f19..897d80f71d6 100644 --- a/pkg/storage/ingest/reader_test.go +++ b/pkg/storage/ingest/reader_test.go @@ -2145,11 +2145,6 @@ func TestPartitionReader_ShouldNotMissRecordsIfFetchRequestContainPartialFailure return nil, fmt.Errorf("expected 1 partition, got %d", len(req.Topics[0].Partitions)), true } - // Simulate a 10% networking error rate. - if rand.Int()%10 == 0 { - return nil, errors.New("mocked error"), true - } - // Simulate a 10% Kafka error rate. if rand.Int()%10 == 0 { return &kmsg.FetchResponse{