mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 00:21:42 -08:00
tsdb/index tests: use labels.FromStrings
This commit is contained in:
parent
2e22653db4
commit
6009066423
|
@ -630,10 +630,8 @@ func BenchmarkReader_ShardedPostings(b *testing.B) {
|
|||
require.NoError(b, iw.AddSymbol("unique"))
|
||||
|
||||
for i := 1; i <= numSeries; i++ {
|
||||
require.NoError(b, iw.AddSeries(storage.SeriesRef(i), labels.Labels{
|
||||
{Name: "const", Value: fmt.Sprintf("%10d", 1)},
|
||||
{Name: "unique", Value: fmt.Sprintf("%10d", i)},
|
||||
}))
|
||||
require.NoError(b, iw.AddSeries(storage.SeriesRef(i),
|
||||
labels.FromStrings("const", fmt.Sprintf("%10d", 1), "unique", fmt.Sprintf("%10d", i))))
|
||||
}
|
||||
|
||||
require.NoError(b, iw.Close())
|
||||
|
|
Loading…
Reference in a new issue