mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-18 18:25:24 -05:00
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:
parent
5f041ff7da
commit
df8a9076b9
1 changed files with 3 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue