Skip to content

Commit

Permalink
test: allow test data dir to not exist on initial clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
Toromyx committed Mar 12, 2024
1 parent eabccc4 commit 2865f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2865f1c

Please sign in to comment.