tsdb: Reduce TestHeadSeriesChunkRace number of iterations to 100 (#17410)

Reduce tsdb.TestHeadSeriesChunkRace number of iterations from 1000 to
100, to stop this test from timing out under CI.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen 2025-10-28 13:57:20 +01:00 committed by GitHub
parent 5f041ff7da
commit df8a9076b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3167,7 +3167,7 @@ func TestIsolationAppendIDZeroIsNoop(t *testing.T) {
func TestHeadSeriesChunkRace(t *testing.T) {
t.Parallel()
for range 1000 {
for range 100 {
testHeadSeriesChunkRace(t)
}
}
@ -3314,17 +3314,17 @@ func testHeadSeriesChunkRace(t *testing.T) {
}
require.NoError(t, app.Commit())
var wg sync.WaitGroup
matcher := labels.MustNewMatcher(labels.MatchEqual, "", "")
q, err := NewBlockQuerier(h, 18, 22)
require.NoError(t, err)
defer q.Close()
var wg sync.WaitGroup
wg.Add(1)
go func() {
defer wg.Done()
h.updateMinMaxTime(20, 25)
h.gc()
wg.Done()
}()
ss := q.Select(context.Background(), false, nil, matcher)
for ss.Next() {