mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
verify chunk sample len function
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
bbc85a3a96
commit
e777d4077c
1 changed files with 1 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ func testChunkSTHandling(t *testing.T, vt ValueType, chunkFactory func() Chunk)
|
|||
for _, s := range samples {
|
||||
sampleAppend(app, vt, s.st, s.t, s.v)
|
||||
}
|
||||
require.Equal(t, len(samples), chunk.NumSamples())
|
||||
it := chunk.Iterator(nil)
|
||||
for i, s := range samples {
|
||||
require.Equal(t, vt, it.Next(), "%d: value type mismatch", i)
|
||||
|
|
|
|||
Loading…
Reference in a new issue