Browse Source

[gitignore]

github_actions
daladim 5 years ago
parent
commit
26c49a85c2
  1. 1
      .gitignore
  2. 2
      examples/provider-sync.rs
  3. 2
      src/cache.rs
  4. 4
      tests/scenarii.rs

1
.gitignore vendored

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

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

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

4
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<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

Loading…
Cancel
Save