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/remote/git.rs | |
| parent | 98d323f5e86df5eab2218ae879da68ae3cb5230a (diff) | |
Cleanup test directories
Diffstat (limited to 'src/remote/git.rs')
| -rw-r--r-- | src/remote/git.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/remote/git.rs b/src/remote/git.rs index c260df8..f74af42 100644 --- a/src/remote/git.rs +++ b/src/remote/git.rs @@ -175,6 +175,7 @@ mod tests { "file2.txt", "I also exist now, btw", ); + cleanup_test_dir(&test_dir); } #[test] @@ -200,6 +201,7 @@ mod tests { assert_file_in_repo_with_contents(&remote_dir_as_string, "file1.txt", "I exist"); assert_file_does_not_exist(&remote_dir_as_string, "boo.txt"); + cleanup_test_dir(&test_dir); } #[test] @@ -214,6 +216,7 @@ mod tests { let result = git.sync_up(&invalid_remote, &local_dir); assert!(result.is_err()); + cleanup_test_dir(&test_dir); } #[test] @@ -247,6 +250,7 @@ mod tests { .expect("Could not sync down from remote"); assert_file_contents(&local_dir.join("file1.txt"), "I exist, but remotely"); assert_file_contents(&local_dir.join("file2.txt"), "I also exist, but remotely"); + cleanup_test_dir(&test_dir); } #[test] @@ -270,6 +274,7 @@ mod tests { .expect("Could not sync down from remote"); assert_file_contents(&local_dir.join("file1.txt"), "I exist, but remotely"); assert!(!&local_dir.join("nooo.txt").exists()); + cleanup_test_dir(&test_dir); } #[test] @@ -284,5 +289,6 @@ mod tests { let result = git.sync_down(&invalid_remote, &local_dir); assert!(result.is_err()); + cleanup_test_dir(&test_dir); } } |