From fdb1516af1c671457bc88687370b95911d4915a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Thu, 12 Dec 2024 12:47:43 +0100 Subject: [PATCH] Fix lint errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: György Krajcsovits --- tsdb/record/record_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tsdb/record/record_test.go b/tsdb/record/record_test.go index e64182c6fb..a035a45fc2 100644 --- a/tsdb/record/record_test.go +++ b/tsdb/record/record_test.go @@ -17,11 +17,13 @@ package record import ( "fmt" "math/rand" + "strconv" "testing" "github.com/stretchr/testify/require" "github.com/prometheus/common/model" + "github.com/prometheus/prometheus/model/histogram" "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/tsdb/chunks" @@ -523,7 +525,7 @@ func BenchmarkWAL_HistogramEncoding(b *testing.B) { } lbls[model.MetricNameLabel] = fmt.Sprintf("series_%d_bucket", i) for j := range buckets { - lbls[model.BucketLabel] = fmt.Sprintf("%d", j) + lbls[model.BucketLabel] = fmt.Sprintf("%g", j) series = append(series, RefSeries{ Ref: ref, Labels: labels.FromMap(lbls),