CI: Bump golangci-lint to 2.0.2 (#103572)
This commit is contained in:
@@ -31,10 +31,7 @@ func TestNoOpSampler(t *testing.T) {
|
||||
func generateTestExemplars(tr models.TimeRange) []models.Exemplar {
|
||||
exemplars := []models.Exemplar{}
|
||||
next := tr.Start.UTC()
|
||||
for {
|
||||
if next.Equal(tr.End) || next.After(tr.End) {
|
||||
break
|
||||
}
|
||||
for !next.Equal(tr.End) && !next.After(tr.End) {
|
||||
exemplars = append(exemplars, models.Exemplar{
|
||||
Timestamp: next,
|
||||
Value: float64(next.Unix()),
|
||||
|
||||
Reference in New Issue
Block a user