mirror of https://github.com/fafhrd91/actix-web
remove version extractor test
This commit is contained in:
parent
ac9509649e
commit
3fde873973
|
@ -471,15 +471,6 @@ mod tests {
|
||||||
assert_eq!(uri.path(), "/foo/bar");
|
assert_eq!(uri.path(), "/foo/bar");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_rt::test]
|
|
||||||
async fn test_version() {
|
|
||||||
let req = TestRequest::default()
|
|
||||||
.version(Version::HTTP_11)
|
|
||||||
.to_http_request();
|
|
||||||
let version = Version::extract(&req).await.unwrap();
|
|
||||||
assert_eq!(version, Version::HTTP_11);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn test_method() {
|
async fn test_method() {
|
||||||
let req = TestRequest::default().method(Method::GET).to_http_request();
|
let req = TestRequest::default().method(Method::GET).to_http_request();
|
||||||
|
|
Loading…
Reference in New Issue