diff --git a/bin/taud/src/main.rs b/bin/taud/src/main.rs index 6a543d1ce..b84919b1a 100644 --- a/bin/taud/src/main.rs +++ b/bin/taud/src/main.rs @@ -441,13 +441,15 @@ async fn main() -> Result<()> { #[cfg(test)] mod tests { - use std::fs::create_dir_all; + use std::fs::{create_dir_all, remove_dir_all}; use crate::{month_tasks::MonthTasks, task_info::TaskInfo}; use super::*; fn get_path() -> Result { + remove_dir_all("/tmp/test_tau_data").ok(); + let path = PathBuf::from("/tmp/test_tau_data"); // mkdir dataset_path if not exists @@ -500,13 +502,6 @@ mod tests { assert_eq!(mt, mt_load); - Ok(()) - } - - #[test] - fn test_activate_task() -> Result<()> { - let settings = Settings { dataset_path: get_path()? }; - // activate task ///////////////////////