From 5ceea0f4f16d87294e3043459e11c2d05b51ce6d Mon Sep 17 00:00:00 2001 From: Benjamin Naecker Date: Fri, 13 Dec 2024 19:47:02 -0800 Subject: [PATCH] Check for correct error message in timeseries retry loop (#7253) --- nexus/tests/integration_tests/metrics.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nexus/tests/integration_tests/metrics.rs b/nexus/tests/integration_tests/metrics.rs index 7e5441c16a..5e5268fb55 100644 --- a/nexus/tests/integration_tests/metrics.rs +++ b/nexus/tests/integration_tests/metrics.rs @@ -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; } }