Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: metonymic-smokey <ahuja.aditi@gmail.com>
  • Loading branch information
metonymic-smokey committed Nov 5, 2021
1 parent c0caf42 commit 3c92690
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/compact/compact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/oklog/ulid"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
promtestutil "github.com/prometheus/client_golang/prometheus/testutil"
"github.com/prometheus/prometheus/tsdb"

Expand Down Expand Up @@ -207,7 +208,7 @@ func TestCompactProgressCalculate(t *testing.T) {
}

var bkt objstore.Bucket
temp := prometheus.NewCounter(prometheus.CounterOpts{})
temp := promauto.NewCounter(prometheus.CounterOpts{Name: "test_metric_for_group", Help: "this is a test metric for compact progress tests"})
grouper := NewDefaultGrouper(logger, bkt, false, false, reg, temp, temp, temp, "")

for _, tcase := range []struct {
Expand Down Expand Up @@ -543,7 +544,7 @@ func TestDownsampleProgressCalculate(t *testing.T) {
}

var bkt objstore.Bucket
temp := prometheus.NewCounter(prometheus.CounterOpts{})
temp := promauto.NewCounter(prometheus.CounterOpts{Name: "test_metric_for_group", Help: "this is a test metric for downsample progress tests"})
grouper := NewDefaultGrouper(logger, bkt, false, false, reg, temp, temp, temp, "")

for _, tcase := range []struct {
Expand Down

0 comments on commit 3c92690

Please sign in to comment.