Fix broken tests

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
pull/5805/head
Goutham Veeramachaneni 8 years ago
parent 6169c33fb8
commit 8b43b0d2c1
No known key found for this signature in database
GPG Key ID: F1C217E8E9023CAD

@ -400,7 +400,7 @@ func (s *populatedChunkSeries) Next() bool {
for s.set.Next() {
lset, chks := s.set.At()
from := 0
from := -1
for i, c := range chks {
if c.MaxTime < s.mint {
from = i

@ -862,11 +862,16 @@ func TestPopulatedCSReturnsValidChunkSlice(t *testing.T) {
set: m,
chunks: cr,
mint: 6,
maxt: 9,
mint: 0,
maxt: 0,
}
require.False(t, p.Next())
p.mint = 6
p.maxt = 9
require.False(t, p.Next())
return
}

Loading…
Cancel
Save