Skip to content

Commit

Permalink
Remove unnecessary conversion
Browse files Browse the repository at this point in the history
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
  • Loading branch information
krajorama committed Sep 9, 2024
1 parent 7305bc2 commit 36acab5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tsdb/head_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3578,9 +3578,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())
},
)
Expand All @@ -3605,9 +3605,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())
},
)
Expand Down

0 comments on commit 36acab5

Please sign in to comment.