From a94deed3418321e92da1f645a6b67b60041d6fc1 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 22 Dec 2019 03:17:40 +0900 Subject: [PATCH] Fix test for Windows --- actix-files/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actix-files/src/lib.rs b/actix-files/src/lib.rs index c45caf375..517243f53 100644 --- a/actix-files/src/lib.rs +++ b/actix-files/src/lib.rs @@ -1222,7 +1222,10 @@ mod tests { ); let bytes = test::read_body(resp).await; + #[cfg(unix)] assert!(format!("{:?}", bytes).contains("/tests/test.png")); + #[cfg(windows)] + assert!(format!("{:?}", bytes).contains("/tests\\\\test.png")); } #[actix_rt::test]