Skip to content

Commit af84ccf

Browse files
authored
Fix TestLazySeriesIterator_RangeValues intermittent test failure (#525)
1 parent f740e07 commit af84ccf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/chunk/iterator_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package chunk
33
import (
44
"context"
55
"testing"
6+
"time"
67

78
"github.com/prometheus/common/model"
89
"github.com/prometheus/prometheus/storage/metric"
@@ -106,7 +107,7 @@ func TestLazySeriesIterator_RangeValues(t *testing.T) {
106107
}{
107108
{
108109
iterator: iterator,
109-
interval: metric.Interval{OldestInclusive: now, NewestInclusive: now},
110+
interval: metric.Interval{OldestInclusive: now.Add(-time.Minute), NewestInclusive: now.Add(time.Minute)},
110111
expectedSamples: dummySamples,
111112
},
112113
} {

0 commit comments

Comments
 (0)