From 18f384178305908134d0a32aa72c6d6cc5851ec9 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 20 Dec 2017 23:36:52 -0800 Subject: [PATCH] update test --- src/httpresponse.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/httpresponse.rs b/src/httpresponse.rs index 4b7b25a29..69bb71a72 100644 --- a/src/httpresponse.rs +++ b/src/httpresponse.rs @@ -740,12 +740,11 @@ mod tests { #[test] fn test_basic_builder() { let resp = HttpResponse::Ok() - .status(StatusCode::NO_CONTENT) .header("X-TEST", "value") .version(Version::HTTP_10) .finish().unwrap(); assert_eq!(resp.version(), Some(Version::HTTP_10)); - assert_eq!(resp.status(), StatusCode::NO_CONTENT); + assert_eq!(resp.status(), StatusCode::OK); } #[test]