diff --git a/test-programs/tests/http_server.rs b/test-programs/tests/http_server.rs index a8e9ae9..a4c9283 100644 --- a/test-programs/tests/http_server.rs +++ b/test-programs/tests/http_server.rs @@ -151,6 +151,14 @@ fn http_server() -> Result<()> { // connection match ureq::get("http://127.0.0.1:8081/response-body-fail").call() { Err(ureq::Error::Io(_transport)) => {} + Ok(mut response) => match response.body_mut().read_to_vec() { + Err(ureq::Error::Io(_transport)) => {} + body => { + panic!( + "/response-body-fail expected io error, got: {response:?} with body {body:?}", + ); + } + }, result => { panic!("/response-body-fail expected io error, got: {result:?}") }