mirror of https://github.com/fafhrd91/actix-web
removed new line ad the end of the file to avoid test issues
This commit is contained in:
parent
03b759b45b
commit
2d01a1d4d0
|
@ -1 +1 @@
|
||||||
first
|
first
|
|
@ -1 +1 @@
|
||||||
second
|
second
|
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue