Browse Source

Merge pull request #14199 from aknuds1/arve/fix-test

tsdb/index: Fix number of series in TestReader_PostingsForLabelMatchingHonorsContextCancel
pull/14203/head
Arve Knudsen 6 months ago committed by GitHub
parent
commit
31a74dcf5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      tsdb/index/index_test.go

2
tsdb/index/index_test.go

@ -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{

Loading…
Cancel
Save