Skip to content

Commit 382e0db

Browse files
committed
Make lint happy.
Signed-off-by: Peter Štibraný <[email protected]>
1 parent 2c62abb commit 382e0db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/querier/error_translate_queryable_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12+
"github.com/go-kit/kit/log"
1213
"github.com/pkg/errors"
1314
"github.com/prometheus/client_golang/prometheus"
1415
"github.com/prometheus/common/route"
@@ -22,7 +23,6 @@ import (
2223
"github.com/weaveworks/common/user"
2324

2425
"github.com/cortexproject/cortex/pkg/chunk"
25-
util_log "github.com/cortexproject/cortex/pkg/util/log"
2626
"github.com/cortexproject/cortex/pkg/util/validation"
2727
)
2828

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

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

0 commit comments

Comments
 (0)