From ad1c2578994058dc80e690395b80416d632bbd6f Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Wed, 9 Mar 2022 22:21:50 +0000 Subject: [PATCH] storage: in tests use labels.FromStrings Replacing code which assumes the internal structure of `Labels`. Signed-off-by: Bryan Boreham --- storage/merge_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/merge_test.go b/storage/merge_test.go index 933e5b1bd..90bc1f9d0 100644 --- a/storage/merge_test.go +++ b/storage/merge_test.go @@ -696,7 +696,7 @@ var result []tsdbutil.Sample func makeSeriesSet(numSeries, numSamples int) SeriesSet { series := []Series{} for j := 0; j < numSeries; j++ { - labels := labels.Labels{{Name: "foo", Value: fmt.Sprintf("bar%d", j)}} + labels := labels.FromStrings("foo", fmt.Sprintf("bar%d", j)) samples := []tsdbutil.Sample{} for k := 0; k < numSamples; k++ { samples = append(samples, sample{t: int64(k), v: float64(k)})