diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-09 18:23:20 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-09 18:23:20 +0100 |
| commit | 67a5f942d573b94ce9b20d19088be075ad433d78 (patch) | |
| tree | f15613c0ccaa1d48b5091c375980991f1891cdeb /src/utils.rs | |
| parent | 98d323f5e86df5eab2218ae879da68ae3cb5230a (diff) | |
Cleanup test directories
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } |