From f709dfd43a9031604646a4c96291388c43e36b8a Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Wed, 14 Sep 2022 22:05:01 +0800 Subject: Fix typos Found via `codespell -L crate`. --- tests/serve_request.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/serve_request.rs') diff --git a/tests/serve_request.rs b/tests/serve_request.rs index 3f5eeff..b23f7e2 100644 --- a/tests/serve_request.rs +++ b/tests/serve_request.rs @@ -135,7 +135,7 @@ fn serves_requests_symlinks( let broken = "symlink broken"; // Set up some basic symlinks: - // to dir, to file, to non-existant location + // to dir, to file, to non-existent location let orig = DIRECTORIES[0].strip_suffix("/").unwrap(); let link = server.path().join(dir.strip_suffix("/").unwrap()); symlink_dir(orig, link).expect("Couldn't create symlink"); @@ -166,7 +166,7 @@ fn serves_requests_symlinks( } // If following symlinks is deactivated, we can just skip this iteration as we assorted - // above tht no entries in the listing can be found for symlinks in that case. + // above the no entries in the listing can be found for symlinks in that case. if no_symlinks { continue; } -- cgit v1.2.3 From 4192ef14d46e721e8f07f4d8e7306ebe0d5d30f2 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Thu, 15 Sep 2022 08:39:15 +0200 Subject: Check for directories in default request test --- tests/serve_request.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/serve_request.rs') diff --git a/tests/serve_request.rs b/tests/serve_request.rs index 3f5eeff..aa57a9b 100644 --- a/tests/serve_request.rs +++ b/tests/serve_request.rs @@ -33,6 +33,9 @@ fn serves_requests_with_no_options(tmpdir: TempDir) -> Result<(), Error> { for &file in FILES { assert!(parsed.find(|x: &Node| x.text() == file).next().is_some()); } + for &dir in DIRECTORIES { + assert!(parsed.find(|x: &Node| x.text() == dir).next().is_some()); + } child.kill()?; -- cgit v1.2.3