tsdb/index: Fix TestReader_PostingsForLabelMatchingHonorsContextCancel

Fix number of series in
TestReader_PostingsForLabelMatchingHonorsContextCancel (off by one).

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen 2024-06-03 17:29:04 +02:00
parent efbd6e41c5
commit b8b9015e38

View file

@ -615,7 +615,7 @@ func TestChunksTimeOrdering(t *testing.T) {
func TestReader_PostingsForLabelMatchingHonorsContextCancel(t *testing.T) { func TestReader_PostingsForLabelMatchingHonorsContextCancel(t *testing.T) {
const seriesCount = 1000 const seriesCount = 1000
var input indexWriterSeriesSlice var input indexWriterSeriesSlice
for i := 1; i < seriesCount; i++ { for i := 1; i <= seriesCount; i++ {
input = append(input, &indexWriterSeries{ input = append(input, &indexWriterSeries{
labels: labels.FromStrings("__name__", fmt.Sprintf("%4d", i)), labels: labels.FromStrings("__name__", fmt.Sprintf("%4d", i)),
chunks: []chunks.Meta{ chunks: []chunks.Meta{