From bad2e792ca9a9ac6da349875ede3d56954e6897a Mon Sep 17 00:00:00 2001 From: johncming Date: Wed, 2 Oct 2019 20:54:34 +0800 Subject: [PATCH] dispatch: route group labels should contain group common label. (#2055) Signed-off-by: johncming --- dispatch/dispatch_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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,