From 0bb65d1e4b3c5ae53869865177a44e5d678a077d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0tibran=C3=BD?= Date: Wed, 2 Jun 2021 15:19:44 +0200 Subject: [PATCH] Reduce number of dispatched alerts to avoid hitting the limit on number of alive goroutines. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Štibraný --- dispatch/dispatch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispatch/dispatch_test.go b/dispatch/dispatch_test.go index 04b2cc95..efacda1b 100644 --- a/dispatch/dispatch_test.go +++ b/dispatch/dispatch_test.go @@ -638,7 +638,7 @@ func TestDispatcherRace(t *testing.T) { } func TestDispatcherRaceOnFirstAlertNotDeliveredWhenGroupWaitIsZero(t *testing.T) { - const numAlerts = 8000 + const numAlerts = 5000 logger := log.NewNopLogger() marker := types.NewMarker(prometheus.NewRegistry())