1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-07-05 05:25:55 +00: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)
.to_request();
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)
.to_request();
let resp = block_on(srv.call(req)).unwrap();
assert_eq!(resp.status(), StatusCode::NOT_FOUND);
assert_eq!(resp.status(), StatusCode::METHOD_NOT_ALLOWED);
}
#[test]