Extract TestGroupsWithLimits, and remove limit test from TestGroups.
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
This commit is contained in:
parent
0f86edcf5c
commit
358645cfe2
|
@ -374,8 +374,7 @@ route:
|
|||
|
||||
timeout := func(d time.Duration) time.Duration { return time.Duration(0) }
|
||||
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, m)
|
||||
dispatcher := NewDispatcher(alerts, route, recorder, marker, timeout, nil, logger, NewDispatcherMetrics(false, prometheus.NewRegistry()))
|
||||
go dispatcher.Run()
|
||||
defer dispatcher.Stop()
|
||||
|
||||
|
|
Loading…
Reference in New Issue