From 382e0db73b6407ea0ca436e73482b2ee4e34ab33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0tibran=C3=BD?= Date: Tue, 15 Jun 2021 21:55:30 +0200 Subject: [PATCH] Make lint happy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Štibraný --- pkg/querier/error_translate_queryable_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/querier/error_translate_queryable_test.go b/pkg/querier/error_translate_queryable_test.go index 79827fc408..afeddf7c78 100644 --- a/pkg/querier/error_translate_queryable_test.go +++ b/pkg/querier/error_translate_queryable_test.go @@ -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" @@ -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" ) @@ -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, @@ -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(".*"),