[TESTS] remote-write: fix slice init length (#14702)

fix: fix slice init length
This commit is contained in:
Bryan Boreham 2024-08-22 12:53:45 +01:00 committed by GitHub
commit 95b3c49836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -930,7 +930,7 @@ func createHistograms(numSamples, numSeries int, floatHistogram bool) ([]record.
}
func createSeriesMetadata(series []record.RefSeries) []record.RefMetadata {
metas := make([]record.RefMetadata, len(series))
metas := make([]record.RefMetadata, 0, len(series))
for _, s := range series {
metas = append(metas, record.RefMetadata{