mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Merge pull request #17881 from bboreham/scrape-benchmark
[TESTS] Scraping: Reset appender in BenchmarkScrapeLoopAppend
This commit is contained in:
commit
bc55334845
1 changed files with 2 additions and 0 deletions
|
|
@ -1384,6 +1384,8 @@ func BenchmarkScrapeLoopAppend(b *testing.B) {
|
|||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
app.Rollback() // Reset the appender so it doesn't grow indefinitely.
|
||||
app = sl.appender()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue