mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 00:21:42 -08:00
tsdb: one more labels.FromStrings
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
0679437825
commit
aa9385ea88
|
@ -2448,10 +2448,7 @@ func TestHeadShardedPostings(t *testing.T) {
|
|||
// Append some series.
|
||||
app := head.Appender(context.Background())
|
||||
for i := 0; i < 100; i++ {
|
||||
_, err := app.Append(0, labels.Labels{
|
||||
{Name: "unique", Value: fmt.Sprintf("value%d", i)},
|
||||
{Name: "const", Value: "1"},
|
||||
}, 100, 0)
|
||||
_, err := app.Append(0, labels.FromStrings("unique", fmt.Sprintf("value%d", i), "const", "1"), 100, 0)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
require.NoError(t, app.Commit())
|
||||
|
|
Loading…
Reference in a new issue