Skip to content

Commit

Permalink
Check for correct error message in timeseries retry loop (#7253)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaecker authored Dec 14, 2024
1 parent 0fa1bc2 commit 5ceea0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nexus/tests/integration_tests/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ pub async fn execute_timeseries_query(
if rsp.status.is_client_error() {
let text = std::str::from_utf8(&rsp.body)
.expect("Timeseries query response body should be UTF-8");
if text.contains("Schema for timeseries") && text.contains("not found")
{
if text.starts_with("Timeseries not found for: ") {
return None;
}
}
Expand Down

0 comments on commit 5ceea0f

Please sign in to comment.