diff --git a/.gitignore b/.gitignore index da00c36..983704b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ /target /test_cache -/example_cache diff --git a/examples/provider-sync.rs b/examples/provider-sync.rs index e4c908c..5765292 100644 --- a/examples/provider-sync.rs +++ b/examples/provider-sync.rs @@ -18,7 +18,7 @@ use my_tasks::settings::PASSWORD; use my_tasks::settings::EXAMPLE_CALENDAR_URL; use my_tasks::utils::pause; -const CACHE_FOLDER: &str = "example_cache"; +const CACHE_FOLDER: &str = "test_cache/provider_sync"; #[tokio::main] diff --git a/src/cache.rs b/src/cache.rs index bfec075..8ac54fc 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -230,7 +230,7 @@ mod tests { async fn serde_cache() { let _ = env_logger::builder().is_test(true).try_init(); - let cache_path = PathBuf::from(String::from("test_cache/")); + let cache_path = PathBuf::from(String::from("test_cache/unit_test")); let mut cache = Cache::new(&cache_path); diff --git a/tests/scenarii.rs b/tests/scenarii.rs index ab1e77f..1185bba 100644 --- a/tests/scenarii.rs +++ b/tests/scenarii.rs @@ -607,8 +607,8 @@ pub async fn populate_test_provider_after_sync(scenarii: &[ItemScenario], mock_b } async fn populate_test_provider(scenarii: &[ItemScenario], mock_behaviour: Arc>, populate_for_final_state: bool) -> Provider { - let mut local = Cache::new(&PathBuf::from(String::from("test_cache_local/"))); - let mut remote = Cache::new(&PathBuf::from(String::from("test_cache_remote/"))); + let mut local = Cache::new(&PathBuf::from(String::from("test_cache/local/"))); + let mut remote = Cache::new(&PathBuf::from(String::from("test_cache/remote/"))); remote.set_mock_behaviour(Some(mock_behaviour)); // Create the initial state, as if we synced both sources in a given state