From 67a5f942d573b94ce9b20d19088be075ad433d78 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 9 Jan 2025 18:23:20 +0100 Subject: Cleanup test directories --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 01b6cdf..2e49a93 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -54,6 +54,7 @@ mod tests { assert_file_contents(&target_dir.join("nested/.hidden"), "I am not here?"); assert_file_contents(&target_dir.join(".hidden/in_plain_sight.mkv"), "Almost"); assert_file_contents(&target_dir.join(".hidden/.hidden"), "I'm double hidden"); + cleanup_test_dir(&test_dir); } #[test] @@ -67,5 +68,6 @@ mod tests { recursively_copy(&source_dir, &target_dir).expect("Copy failed on empty test directory"); assert_eq!(target_dir.read_dir().unwrap().count(), 0); + cleanup_test_dir(&test_dir); } } -- cgit