From e777d4077cd567f73133d0a60f5bc11eaec2ace6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Wed, 4 Feb 2026 19:48:15 +0100 Subject: [PATCH] verify chunk sample len function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: György Krajcsovits --- tsdb/chunkenc/st_helper_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tsdb/chunkenc/st_helper_test.go b/tsdb/chunkenc/st_helper_test.go index 662866de93..e3d64e31c0 100644 --- a/tsdb/chunkenc/st_helper_test.go +++ b/tsdb/chunkenc/st_helper_test.go @@ -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)