Extract TestGroupsWithLimits, and remove limit test from TestGroups.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
This commit is contained in:
Peter Štibraný 2021-06-01 09:35:24 +02:00
parent 0f86edcf5c
commit 358645cfe2
1 changed files with 1 additions and 2 deletions

View File

@ -374,8 +374,7 @@ route:
timeout := func(d time.Duration) time.Duration { return time.Duration(0) } timeout := func(d time.Duration) time.Duration { return time.Duration(0) }
recorder := &recordStage{alerts: make(map[string]map[model.Fingerprint]*types.Alert)} recorder := &recordStage{alerts: make(map[string]map[model.Fingerprint]*types.Alert)}
m := NewDispatcherMetrics(false, prometheus.NewRegistry()) dispatcher := NewDispatcher(alerts, route, recorder, marker, timeout, nil, logger, NewDispatcherMetrics(false, prometheus.NewRegistry()))
dispatcher := NewDispatcher(alerts, route, recorder, marker, timeout, nil, logger, m)
go dispatcher.Run() go dispatcher.Run()
defer dispatcher.Stop() defer dispatcher.Stop()