Improve metrics acceptance test failure messages
This commit is contained in:
parent
c04cc39a03
commit
e4525d8ee2
|
@ -770,8 +770,9 @@ async fn metrics_endpoint() -> Result<()> {
|
||||||
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!(std::str::from_utf8(&body)
|
||||||
.unwrap()
|
.expect("metrics response is valid UTF-8")
|
||||||
.contains("metrics snapshot"));
|
.contains("metrics snapshot"),
|
||||||
|
"metrics exporter returns data in the expected format");
|
||||||
|
|
||||||
child.kill()?;
|
child.kill()?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue