Reduce number of dispatched alerts to avoid hitting the limit on number of alive goroutines.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
This commit is contained in:
Peter Štibraný 2021-06-02 15:19:44 +02:00
parent b3ea60e9bb
commit 0bb65d1e4b
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ func TestDispatcherRace(t *testing.T) {
} }
func TestDispatcherRaceOnFirstAlertNotDeliveredWhenGroupWaitIsZero(t *testing.T) { func TestDispatcherRaceOnFirstAlertNotDeliveredWhenGroupWaitIsZero(t *testing.T) {
const numAlerts = 8000 const numAlerts = 5000
logger := log.NewNopLogger() logger := log.NewNopLogger()
marker := types.NewMarker(prometheus.NewRegistry()) marker := types.NewMarker(prometheus.NewRegistry())