remove version extractor test

This commit is contained in:
Ibraheem Ahmed 2021-06-22 11:45:38 -04:00 committed by GitHub
parent ac9509649e
commit 3fde873973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -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();