From 2865f1cb6b1bdb4a2d30bb037c414f3d37d5d412 Mon Sep 17 00:00:00 2001 From: Thomas Gauges Date: Tue, 12 Mar 2024 21:03:26 +0100 Subject: [PATCH] test: allow test data dir to not exist on initial clearing --- src-tauri/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/path.rs b/src-tauri/src/path.rs index fde6436..98497cf 100644 --- a/src-tauri/src/path.rs +++ b/src-tauri/src/path.rs @@ -35,7 +35,7 @@ pub fn app_data_dir() -> PathBuf { { dir.push(".TEST"); tests::CLEAR_DATA_DIR_ONCE.call_once(|| { - std::fs::remove_dir_all(&dir).unwrap(); + std::fs::remove_dir_all(&dir).ok(); }); crate::tests::TEST_NAME.with_borrow(|test_name_option| { if let Some(test_name) = test_name_option {