`cargo fmt --all`

This commit is contained in:
teor 2020-12-03 09:09:09 +10:00 committed by Deirdre Connolly
parent e4525d8ee2
commit c0bbac89b3
1 changed files with 6 additions and 4 deletions

View File

@ -769,10 +769,12 @@ async fn metrics_endpoint() -> Result<()> {
let res = client.get(Uri::from_static(url)).await?; let res = client.get(Uri::from_static(url)).await?;
assert!(res.status().is_success()); assert!(res.status().is_success());
let body = hyper::body::to_bytes(res).await?; let body = hyper::body::to_bytes(res).await?;
assert!(std::str::from_utf8(&body) assert!(
.expect("metrics response is valid UTF-8") std::str::from_utf8(&body)
.contains("metrics snapshot"), .expect("metrics response is valid UTF-8")
"metrics exporter returns data in the expected format"); .contains("metrics snapshot"),
"metrics exporter returns data in the expected format"
);
child.kill()?; child.kill()?;