Merge pull request #17881 from bboreham/scrape-benchmark

[TESTS] Scraping: Reset appender in BenchmarkScrapeLoopAppend
This commit is contained in:
Bartlomiej Plotka 2026-01-20 11:59:15 +00:00 committed by GitHub
commit bc55334845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
}
})
}