`cargo fmt --all`
This commit is contained in:
parent
e4525d8ee2
commit
c0bbac89b3
|
|
@ -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()?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue