[gitignore]

This commit is contained in:
daladim 2021-04-19 08:30:34 +02:00
parent e6ccae75be
commit 26c49a85c2
4 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
/target
/test_cache
/example_cache

View file

@ -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]

View file

@ -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);

View file

@ -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<Mutex<MockBehaviour>>, populate_for_final_state: bool) -> Provider<Cache, CachedCalendar, Cache, CachedCalendar> {
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