Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
  • Loading branch information
fpetkovski committed Apr 19, 2024
1 parent 65adc27 commit 59f6a64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cortex/querier/queryrange/results_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ func (PrometheusResponseExtractor) Extract(start, end int64, from Response) Resp
Stats: extractStats(start, end, promRes.Data.Stats),
Analysis: promRes.Data.Analysis,
},
Headers: promRes.Headers,
Headers: promRes.Headers,
Warnings: promRes.Warnings,
}
}

Expand All @@ -115,6 +116,7 @@ func (PrometheusResponseExtractor) ResponseWithoutHeaders(resp Response) Respons
Stats: promRes.Data.Stats,
Analysis: promRes.Data.Analysis,
},
Warnings: promRes.Warnings,
}
}

Expand All @@ -128,7 +130,8 @@ func (PrometheusResponseExtractor) ResponseWithoutStats(resp Response) Response
Result: promRes.Data.Result,
Analysis: promRes.Data.Analysis,
},
Headers: promRes.Headers,
Headers: promRes.Headers,
Warnings: promRes.Warnings,
}
}

Expand Down
1 change: 1 addition & 0 deletions internal/cortex/querier/queryrange/results_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ var (
},
},
},
Warnings: []string{"test-warn"},
}
parsedHistogramResponse = &PrometheusResponse{
Status: "success",
Expand Down

0 comments on commit 59f6a64

Please sign in to comment.