Skip to content

Commit

Permalink
Update pkg/querier/tenantfederation/merge_queryable_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Arve Knudsen <[email protected]>
  • Loading branch information
santileira and aknuds1 authored Jan 21, 2025
1 parent 61dcc6d commit 7d0dad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/querier/tenantfederation/merge_queryable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (m mockTenantQuerier) LabelNames(ctx context.Context, hints *storage.LabelH
}
slices.Sort(results)

if hints != nil && hints.Limit != 0 && len(results) > hints.Limit {
if hints != nil && hints.Limit > 0 && len(results) > hints.Limit {
results = results[:hints.Limit]
}

Expand Down

0 comments on commit 7d0dad4

Please sign in to comment.