`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?;
assert!(res.status().is_success());
let body = hyper::body::to_bytes(res).await?;
assert!(std::str::from_utf8(&body)
.expect("metrics response is valid UTF-8")
.contains("metrics snapshot"),
"metrics exporter returns data in the expected format");
assert!(
std::str::from_utf8(&body)
.expect("metrics response is valid UTF-8")
.contains("metrics snapshot"),
"metrics exporter returns data in the expected format"
);
child.kill()?;