Provider uses update_item
This commit is contained in:
parent
266437a4d1
commit
8fd416fae1
2 changed files with 20 additions and 22 deletions
|
@ -34,6 +34,7 @@ impl TestFlavour {
|
|||
pub fn normal_with_errors9() -> Self { Self{} }
|
||||
pub fn normal_with_errors10() -> Self { Self{} }
|
||||
pub fn normal_with_errors11() -> Self { Self{} }
|
||||
pub fn normal_with_errors12() -> Self { Self{} }
|
||||
|
||||
pub async fn run(&self, _max_attempts: u32) {
|
||||
println!("WARNING: This test required the \"integration_tests\" Cargo feature");
|
||||
|
@ -188,6 +189,16 @@ impl TestFlavour {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn normal_with_errors12() -> Self {
|
||||
Self {
|
||||
scenarii: scenarii::scenarii_basic(),
|
||||
mock_behaviour: Arc::new(Mutex::new(MockBehaviour{
|
||||
update_item_behaviour: (0,3),
|
||||
..MockBehaviour::default()
|
||||
})),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub async fn run(&self, max_attempts: u32) {
|
||||
self.mock_behaviour.lock().unwrap().suspend();
|
||||
|
@ -306,6 +317,11 @@ async fn test_errors_in_regular_sync11() {
|
|||
run_flavour(TestFlavour::normal_with_errors11(), 100).await;
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_errors_in_regular_sync12() {
|
||||
run_flavour(TestFlavour::normal_with_errors12(), 100).await;
|
||||
}
|
||||
|
||||
#[cfg(feature = "integration_tests")]
|
||||
use my_tasks::{traits::CalDavSource,
|
||||
Provider,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue