Skip to content

Commit

Permalink
Make lint happy.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
  • Loading branch information
pstibrany committed Jun 16, 2021
1 parent 2c62abb commit 382e0db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/querier/error_translate_queryable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"testing"
"time"

"github.com/go-kit/kit/log"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/route"
Expand All @@ -22,7 +23,6 @@ import (
"github.com/weaveworks/common/user"

"github.com/cortexproject/cortex/pkg/chunk"
util_log "github.com/cortexproject/cortex/pkg/util/log"
"github.com/cortexproject/cortex/pkg/util/validation"
)

Expand Down Expand Up @@ -130,7 +130,7 @@ func TestApiStatusCodes(t *testing.T) {

func createPrometheusAPI(q storage.SampleAndChunkQueryable) *route.Router {
engine := promql.NewEngine(promql.EngineOpts{
Logger: util_log.Logger,
Logger: log.NewNopLogger(),
Reg: nil,
ActiveQueryTracker: nil,
MaxSamples: 100,
Expand All @@ -151,7 +151,7 @@ func createPrometheusAPI(q storage.SampleAndChunkQueryable) *route.Router {
nil, // Only needed for admin APIs.
"", // This is for snapshots, which is disabled when admin APIs are disabled. Hence empty.
false, // Disable admin APIs.
util_log.Logger,
log.NewNopLogger(),
func(context.Context) v1.RulesRetriever { return &DummyRulesRetriever{} },
0, 0, 0, // Remote read samples and concurrency limit.
regexp.MustCompile(".*"),
Expand Down

0 comments on commit 382e0db

Please sign in to comment.