From 6f84a0c8976be45e631c6063a063ea98b02e5edc Mon Sep 17 00:00:00 2001 From: daladim Date: Mon, 5 Apr 2021 23:20:45 +0200 Subject: [PATCH] [tests] Testing successive syncs --- tests/sync.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/sync.rs b/tests/sync.rs index 4a30939..d3ae8be 100644 --- a/tests/sync.rs +++ b/tests/sync.rs @@ -68,6 +68,12 @@ impl TestFlavour { assert!(provider.local() .has_same_observable_content_as(expected_provider.local() ).await.unwrap()); assert!(provider.remote().has_same_observable_content_as(expected_provider.remote()).await.unwrap()); + + // Perform a second sync, even if no change has happened, just to check + println!("Syncing again"); + provider.sync().await.unwrap(); + assert!(provider.local() .has_same_observable_content_as(expected_provider.local() ).await.unwrap()); + assert!(provider.remote().has_same_observable_content_as(expected_provider.remote()).await.unwrap()); } }