Skip to content

Commit

Permalink
Fix incomplete merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mapno committed Jan 26, 2024
1 parent 3929744 commit 76c0cb0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/frontend/tagsharding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"time"

"github.com/grafana/tempo/pkg/util/test"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"go.uber.org/atomic"

Expand Down Expand Up @@ -438,7 +439,7 @@ func TestTagsSearchSharderRoundTrip(t *testing.T) {
}, nil
})

o, err := overrides.NewOverrides(overrides.Config{})
o, err := overrides.NewOverrides(overrides.Config{}, prometheus.NewRegistry())
require.NoError(t, err)

sharder := newTagsSharding(&mockReader{
Expand Down Expand Up @@ -544,7 +545,7 @@ func TestTagsSearchSubRequestsCancelled(t *testing.T) {
return httptest.NewRecorder().Result(), nil
})

o, err := overrides.NewOverrides(overrides.Config{})
o, err := overrides.NewOverrides(overrides.Config{}, prometheus.NewRegistry())
require.NoError(t, err)

sharder := newTagsSharding(&mockReader{
Expand Down Expand Up @@ -618,7 +619,7 @@ func TestTagsSearchSharderRoundTripBadRequest(t *testing.T) {
return nil, nil
})

o, err := overrides.NewOverrides(overrides.Config{})
o, err := overrides.NewOverrides(overrides.Config{}, prometheus.NewRegistry())
require.NoError(t, err)

sharder := newTagsSharding(&mockReader{}, o, SearchSharderConfig{
Expand Down Expand Up @@ -652,7 +653,7 @@ func TestTagsSearchSharderRoundTripBadRequest(t *testing.T) {
MaxSearchDuration: model.Duration(time.Minute),
},
},
})
}, prometheus.NewRegistry())
require.NoError(t, err)

sharder = newTagsSharding(&mockReader{}, o, SearchSharderConfig{
Expand Down

0 comments on commit 76c0cb0

Please sign in to comment.