mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Remove unnecessary conversion
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
60ab1cc5a5
commit
d3f4e7c223
|
@ -3507,9 +3507,9 @@ func TestQueryOOOHeadDuringTruncate(t *testing.T) {
|
|||
require.False(t, ss.Next()) // One series.
|
||||
it := s.Iterator(nil)
|
||||
require.NotEqual(t, chunkenc.ValNone, it.Next()) // Has some data.
|
||||
require.Equal(t, int64(minT), it.AtT()) // It is an in-order sample.
|
||||
require.Equal(t, minT, it.AtT()) // It is an in-order sample.
|
||||
require.NotEqual(t, chunkenc.ValNone, it.Next()) // Has some data.
|
||||
require.Equal(t, int64(minT+50), it.AtT()) // it is an out-of-order sample.
|
||||
require.Equal(t, minT+50, it.AtT()) // it is an out-of-order sample.
|
||||
require.NoError(t, it.Err())
|
||||
},
|
||||
)
|
||||
|
@ -3534,9 +3534,9 @@ func TestChunkQueryOOOHeadDuringTruncate(t *testing.T) {
|
|||
// Samples
|
||||
it := meta.Chunk.Iterator(nil)
|
||||
require.NotEqual(t, chunkenc.ValNone, it.Next()) // Has some data.
|
||||
require.Equal(t, int64(minT), it.AtT()) // It is an in-order sample.
|
||||
require.Equal(t, minT, it.AtT()) // It is an in-order sample.
|
||||
require.NotEqual(t, chunkenc.ValNone, it.Next()) // Has some data.
|
||||
require.Equal(t, int64(minT+50), it.AtT()) // it is an out-of-order sample.
|
||||
require.Equal(t, minT+50, it.AtT()) // it is an out-of-order sample.
|
||||
require.NoError(t, it.Err())
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue