diff --git a/actix-files/tests/fixtures/guards/first/index.txt b/actix-files/tests/fixtures/guards/first/index.txt index 9c59e24b8..fe4f02ad0 100644 --- a/actix-files/tests/fixtures/guards/first/index.txt +++ b/actix-files/tests/fixtures/guards/first/index.txt @@ -1 +1 @@ -first +first \ No newline at end of file diff --git a/actix-files/tests/fixtures/guards/second/index.txt b/actix-files/tests/fixtures/guards/second/index.txt index e019be006..2147e4188 100644 --- a/actix-files/tests/fixtures/guards/second/index.txt +++ b/actix-files/tests/fixtures/guards/second/index.txt @@ -1 +1 @@ -second +second \ No newline at end of file diff --git a/actix-files/tests/guard.rs b/actix-files/tests/guard.rs index c74980877..8b1785e7f 100644 --- a/actix-files/tests/guard.rs +++ b/actix-files/tests/guard.rs @@ -24,7 +24,7 @@ async fn test_guard_filter() { let res = test::call_service(&srv, req).await; 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") .append_header(("Host", "second.com")) @@ -32,5 +32,5 @@ async fn test_guard_filter() { let res = test::call_service(&srv, req).await; 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")); }