From b8b9015e38815534b266296d5ea3751689d696db Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Mon, 3 Jun 2024 17:29:04 +0200 Subject: [PATCH] tsdb/index: Fix TestReader_PostingsForLabelMatchingHonorsContextCancel Fix number of series in TestReader_PostingsForLabelMatchingHonorsContextCancel (off by one). Signed-off-by: Arve Knudsen --- tsdb/index/index_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/index/index_test.go b/tsdb/index/index_test.go index 5c6d64e07..038caacf8 100644 --- a/tsdb/index/index_test.go +++ b/tsdb/index/index_test.go @@ -615,7 +615,7 @@ func TestChunksTimeOrdering(t *testing.T) { func TestReader_PostingsForLabelMatchingHonorsContextCancel(t *testing.T) { const seriesCount = 1000 var input indexWriterSeriesSlice - for i := 1; i < seriesCount; i++ { + for i := 1; i <= seriesCount; i++ { input = append(input, &indexWriterSeries{ labels: labels.FromStrings("__name__", fmt.Sprintf("%4d", i)), chunks: []chunks.Meta{