removed new line ad the end of the file to avoid test issues

This commit is contained in:
Tglman 2021-03-17 16:16:54 +00:00
parent 03b759b45b
commit 2d01a1d4d0
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ async fn test_guard_filter() {
let res = test::call_service(&srv, req).await; let res = test::call_service(&srv, req).await;
assert_eq!(res.status(), StatusCode::OK); assert_eq!(res.status(), StatusCode::OK);
assert_eq!(test::read_body(res).await, Bytes::from("first\n")); assert_eq!(test::read_body(res).await, Bytes::from("first"));
let req = TestRequest::with_uri("/index.txt") let req = TestRequest::with_uri("/index.txt")
.append_header(("Host", "second.com")) .append_header(("Host", "second.com"))
@ -32,5 +32,5 @@ async fn test_guard_filter() {
let res = test::call_service(&srv, req).await; let res = test::call_service(&srv, req).await;
assert_eq!(res.status(), StatusCode::OK); assert_eq!(res.status(), StatusCode::OK);
assert_eq!(test::read_body(res).await, Bytes::from("second\n")); assert_eq!(test::read_body(res).await, Bytes::from("second"));
} }