From c0976bfa1742d385e13272d543b334f0772248c9 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 12 Apr 2018 21:28:17 -0700 Subject: [PATCH] fix test --- src/fs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs.rs b/src/fs.rs index 0f6120b2a..acb3121d8 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -625,12 +625,12 @@ mod tests { fn test_redirect_to_index_nested() { let mut st = StaticFiles::new(".").index_file("Cargo.toml"); let mut req = HttpRequest::default(); - req.match_info_mut().add("tail", "examples/basics"); + req.match_info_mut().add("tail", "tools/wsload"); let resp = st.handle(req).respond_to(HttpRequest::default()).unwrap(); let resp = resp.as_response().expect("HTTP Response"); assert_eq!(resp.status(), StatusCode::FOUND); - assert_eq!(resp.headers().get(header::LOCATION).unwrap(), "/examples/basics/Cargo.toml"); + assert_eq!(resp.headers().get(header::LOCATION).unwrap(), "/tools/wsload/Cargo.toml"); } #[test]