From d6ee642dd92de0e7a4951bd7513a1ba5b2a77fab Mon Sep 17 00:00:00 2001 From: daladim Date: Sat, 20 Mar 2021 20:13:07 +0100 Subject: [PATCH] [tests] added some edge cases --- tests/sync.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/sync.rs b/tests/sync.rs index df70dfc..a41ef76 100644 --- a/tests/sync.rs +++ b/tests/sync.rs @@ -23,8 +23,10 @@ async fn test_regular_sync() { let cals_server = provider.server().get_calendars().await.unwrap(); + println!("----Server-------"); my_tasks::utils::print_calendar_list(&cals_server); let cals_local = provider.local().get_calendars().await.unwrap(); + println!("\n----Local-------"); my_tasks::utils::print_calendar_list(&cals_local); assert!(provider.server().has_same_contents_than(provider.local()).await.unwrap()); @@ -34,11 +36,11 @@ async fn test_regular_sync() { /// Populate sources with the following: /// * At the last sync: both sources had A, B, C, D, E, F, G, H, I, J, K, L, M at last sync /// * Before the newer sync, this will be the content of the sources: -/// * server: A, C, D, E', F', G✓, H , I', K✓, L, M, N -/// * cache: A, B, D', E, F'', G , H✓, I✓, J✓, L, M, O +/// * server: A, C, D, E', F', G✓, H , I', K✓, M, N +/// * cache: A, B, D', E, F'', G , H✓, I✓, J✓, M, O /// /// Hence, here is the expected result after the sync: -/// * both: A, D', E', F', G✓, H✓, I', K✓, L, M, N, O +/// * both: A, D', E', F', G✓, H✓, I', K✓, M, N, O /// /// Notes: /// * X': name has been modified since the last sync @@ -78,6 +80,7 @@ async fn populate_test_provider() -> Provider Provider Provider