dispatch: route group labels should contain group common label. (#2055)

Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
johncming 2019-10-02 20:54:34 +08:00 committed by Simon Pasquier
parent 5ef70697a7
commit bad2e792ca
1 changed files with 5 additions and 2 deletions

View File

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