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

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