Fix test using try_into -> try_into_http_response

This commit is contained in:
Devin Ragotzy 2021-04-12 15:51:10 -04:00 committed by Jonas Platte
parent f2286f8ae5
commit 72394655fd

View File

@ -108,13 +108,13 @@ impl Response {
#[cfg(all(test, feature = "server"))]
mod tests {
use std::convert::TryInto;
use ruma_api::OutgoingResponse;
use super::Response;
#[test]
fn response_body() {
let res: http::Response<Vec<u8>> = Response::new().try_into().unwrap();
let res = Response::new().try_into_http_response().unwrap();
assert_eq!(res.body(), b"{}");
}