Skip to content

Commit 82293a9

Browse files
committed
Fix tests
1 parent e3ff425 commit 82293a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/distributor/distributor_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6549,7 +6549,7 @@ func (i *mockIngester) LabelNames(ctx context.Context, req *client.LabelNamesReq
65496549

65506550
response := client.LabelNamesResponse{}
65516551
labelsSet := map[string]struct{}{}
6552-
loop:
6552+
65536553
for _, ts := range i.timeseries {
65546554
if match(ts.Labels, matchers) {
65556555
for _, lbl := range ts.Labels {
@@ -6559,9 +6559,6 @@ loop:
65596559

65606560
labelsSet[lbl.Name] = struct{}{}
65616561
response.LabelNames = append(response.LabelNames, lbl.Name)
6562-
if hints != nil && hints.Limit > 0 && len(labelsSet) >= hints.Limit {
6563-
break loop
6564-
}
65656562
}
65666563
}
65676564
}

0 commit comments

Comments
 (0)