Skip to content

Commit 27ff09e

Browse files
committed
Update intance-watcher integration test
1 parent 9c6c6d5 commit 27ff09e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

nexus/tests/integration_tests/metrics.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use nexus_test_utils::resource_helpers::{
1919
};
2020
use nexus_test_utils::ControlPlaneTestContext;
2121
use nexus_test_utils_macros::nexus_test;
22+
use nexus_types::external_api::views::OxqlQueryResult;
2223
use omicron_test_utils::dev::poll::{wait_for_condition, CondCheckError};
2324
use omicron_uuid_kinds::{GenericUuid, InstanceUuid};
2425
use oximeter::types::Datum;
@@ -307,12 +308,14 @@ pub async fn timeseries_query(
307308
.unwrap_or_else(|e| {
308309
panic!("timeseries query failed: {e:?}\nquery: {query}")
309310
});
310-
rsp.parsed_body().unwrap_or_else(|e| {
311-
panic!(
312-
"could not parse timeseries query response: {e:?}\n\
311+
rsp.parsed_body::<OxqlQueryResult>()
312+
.unwrap_or_else(|e| {
313+
panic!(
314+
"could not parse timeseries query response: {e:?}\n\
313315
query: {query}\nresponse: {rsp:#?}"
314-
);
315-
})
316+
);
317+
})
318+
.tables
316319
}
317320

318321
#[nexus_test]

0 commit comments

Comments
 (0)