From 3425f7be404bbde884adc52b60e330aeb2258145 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 14 Jan 2018 14:58:58 -0800 Subject: [PATCH] fix tests --- Cargo.toml | 2 +- src/server/encoding.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b594b3cb3..6c04a4acd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-web" -version = "0.3.1" +version = "0.3.2" authors = ["Nikolay Kim "] description = "Actix web framework" readme = "README.md" diff --git a/src/server/encoding.rs b/src/server/encoding.rs index 271c9f55c..0b1363eeb 100644 --- a/src/server/encoding.rs +++ b/src/server/encoding.rs @@ -867,8 +867,8 @@ mod tests { fn test_chunked_te() { let bytes = SharedBytes::default(); let mut enc = TransferEncoding::chunked(bytes.clone()); - assert!(!enc.encode(b"test").ok().unwrap()); - assert!(enc.encode(b"").ok().unwrap()); + assert!(!enc.encode(Binary::from(b"test".as_ref())).ok().unwrap()); + assert!(enc.encode(Binary::from(b"".as_ref())).ok().unwrap()); assert_eq!(bytes.get_mut().take().freeze(), Bytes::from_static(b"4\r\ntest\r\n0\r\n\r\n")); }