1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

update tests

This commit is contained in:
Nikolay Kim 2019-03-24 16:28:16 -07:00
parent b95e99a09e
commit ed322c175e
2 changed files with 2 additions and 2 deletions

View File

@ -442,6 +442,6 @@ mod tests {
.method(Method::HEAD) .method(Method::HEAD)
.to_request(); .to_request();
let resp = call_success(&mut srv, req); let resp = call_success(&mut srv, req);
assert_eq!(resp.status(), StatusCode::NOT_FOUND); assert_eq!(resp.status(), StatusCode::METHOD_NOT_ALLOWED);
} }
} }

View File

@ -598,7 +598,7 @@ mod tests {
.method(Method::POST) .method(Method::POST)
.to_request(); .to_request();
let resp = block_on(srv.call(req)).unwrap(); let resp = block_on(srv.call(req)).unwrap();
assert_eq!(resp.status(), StatusCode::NOT_FOUND); assert_eq!(resp.status(), StatusCode::METHOD_NOT_ALLOWED);
} }
#[test] #[test]