diff --git a/dispatch/dispatch_test.go b/dispatch/dispatch_test.go index 022dfab9..d38cbda9 100644 --- a/dispatch/dispatch_test.go +++ b/dispatch/dispatch_test.go @@ -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()