Skip to content

Commit

Permalink
fixing one more unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
  • Loading branch information
pedro-stanaka committed Nov 4, 2024
1 parent 457b861 commit 3d47cda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/queryfrontend/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ func TestRoundTripSplitIntervalMiddleware(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
tpw, err := NewTripperware(
Config{
CortexHandlerConfig: &transport.HandlerConfig{},
QueryRangeConfig: QueryRangeConfig{
Limits: defaultLimits,
SplitQueriesByInterval: tc.splitInterval,
Expand Down Expand Up @@ -462,6 +463,7 @@ func TestRoundTripQueryRangeCacheMiddleware(t *testing.T) {

tpw, err := NewTripperware(
Config{
CortexHandlerConfig: &transport.HandlerConfig{},
QueryRangeConfig: QueryRangeConfig{
Limits: defaultLimits,
ResultsCacheConfig: cacheConf,
Expand Down Expand Up @@ -559,6 +561,7 @@ func TestRoundTripQueryCacheWithShardingMiddleware(t *testing.T) {
ResultsCacheConfig: cacheConf,
SplitQueriesByInterval: day,
},
CortexHandlerConfig: &transport.HandlerConfig{},
}, nil, log.NewNopLogger(),
)
testutil.Ok(t, err)
Expand Down Expand Up @@ -683,6 +686,7 @@ func TestRoundTripLabelsCacheMiddleware(t *testing.T) {
ResultsCacheConfig: cacheConf,
SplitQueriesByInterval: day,
},
CortexHandlerConfig: &transport.HandlerConfig{},
}, nil, log.NewNopLogger(),
)
testutil.Ok(t, err)
Expand Down Expand Up @@ -791,6 +795,7 @@ func TestRoundTripSeriesCacheMiddleware(t *testing.T) {

tpw, err := NewTripperware(
Config{
CortexHandlerConfig: &transport.HandlerConfig{},
LabelsConfig: LabelsConfig{
Limits: defaultLimits,
ResultsCacheConfig: cacheConf,
Expand Down

0 comments on commit 3d47cda

Please sign in to comment.