diff --git a/dispatch/dispatch_test.go b/dispatch/dispatch_test.go index fd8677a8..45fd38ab 100644 --- a/dispatch/dispatch_test.go +++ b/dispatch/dispatch_test.go @@ -38,8 +38,11 @@ func TestAggrGroup(t *testing.T) { "b": "v2", } opts := &RouteOpts{ - Receiver: "n1", - GroupBy: map[model.LabelName]struct{}{}, + Receiver: "n1", + GroupBy: map[model.LabelName]struct{}{ + "a": struct{}{}, + "b": struct{}{}, + }, GroupWait: 1 * time.Second, GroupInterval: 300 * time.Millisecond, RepeatInterval: 1 * time.Hour,