fix tests

This commit is contained in:
Rob Ede 2021-01-17 04:34:58 +00:00
parent 3c01874dd7
commit 373b92f07a
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@
* `ResponseBuilder::insert_header` method which allows using typed headers. [#1869]
* `ResponseBuilder::append_header` method which allows using typed headers. [#1869]
* `TestRequest::insert_header` method which allows using typed headers. [#1869]
* `ContentEncoding` implements all necessary header traits. [#1912]
### Changed
* `ResponseBuilder::content_type` now takes an `impl IntoHeaderValue` to support using typed
@ -24,6 +25,7 @@
[#1869]: https://github.com/actix/actix-web/pull/1869
[#1894]: https://github.com/actix/actix-web/pull/1894
[#1904]: https://github.com/actix/actix-web/pull/1904
[#1912]: https://github.com/actix/actix-web/pull/1912
## 3.0.0-beta.1 - 2021-01-07

View File

@ -600,8 +600,8 @@ async fn test_client_deflate_encoding_large_random() {
let mut res = req.await.unwrap();
let bytes = res.body().await.unwrap();
assert_eq!(res.status(), StatusCode::BAD_REQUEST);
assert_eq!(bytes, Bytes::from_static(b"corrupt deflate stream"));
assert_eq!(res.status(), StatusCode::OK);
assert_eq!(bytes, Bytes::from(data));
}
#[actix_rt::test]