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/remote/git.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/remote/git.rs') 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); } } -- cgit