Skip to content

Commit 0926efb

Browse files
committed
Fixed test failing due to namespace overlap
Signed-off-by: Zach Speaks <zspeaks@amazon.com>
1 parent 7c93a11 commit 0926efb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/api/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func TestNewApiWithoutHeaderLogging(t *testing.T) {
8484
}
8585
serverCfg := server.Config{
8686
HTTPListenNetwork: server.DefaultNetwork,
87-
MetricsNamespace: "with_header_logging",
87+
MetricsNamespace: "without_header_logging",
8888
}
8989
server, err := server.New(serverCfg)
9090
require.NoError(t, err)

pkg/api/middlewares.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import (
44
"context"
55
"net/http"
66

7-
util_log "github.com/cortexproject/cortex/pkg/util/log"
87
"github.com/weaveworks/common/middleware"
98

109
"github.com/cortexproject/cortex/pkg/chunk/purger"
1110
"github.com/cortexproject/cortex/pkg/querier/queryrange"
1211
"github.com/cortexproject/cortex/pkg/tenant"
12+
util_log "github.com/cortexproject/cortex/pkg/util/log"
1313
)
1414

1515
// middleware for setting cache gen header to let consumer of response know all previous responses could be invalid due to delete operation

0 commit comments

Comments
 (0)