@@ -27,13 +27,15 @@ def tearDown(self) -> None:
2727 time .sleep (1 )
2828 shutil .rmtree (self .LOCAL_SYNC_PULL_DIR , ignore_errors = True )
2929
30+ @retry_assertion
3031 def test_cli_sync_push (self ):
3132 result = self .runner .invoke (cli , ['sync' , '--push' , '-F' , TEST_FILES_DIR , self .CLD_SYNC_DIR ])
3233
3334 self .assertEqual (0 , result .exit_code )
3435 self .assertIn ("Synced | 12" , result .output )
3536 self .assertIn ("Done!" , result .output )
3637
38+ @retry_assertion
3739 def test_cli_sync_push_twice (self ):
3840 self ._upload_sync_files (TEST_FILES_DIR )
3941
@@ -46,6 +48,7 @@ def test_cli_sync_push_twice(self):
4648 self .assertIn ("Skipping 12 items" , result .output )
4749 self .assertIn ("Done!" , result .output )
4850
51+ @retry_assertion
4952 def test_cli_sync_push_out_of_sync (self ):
5053 self ._upload_sync_files (TEST_FILES_DIR )
5154
@@ -62,6 +65,7 @@ def test_cli_sync_push_out_of_sync(self):
6265 self .assertIn ("Synced | 1" , result .output )
6366 self .assertIn ("Done!" , result .output )
6467
68+ @retry_assertion
6569 def test_cli_sync_pull (self ):
6670 self ._upload_sync_files (TEST_FILES_DIR )
6771
@@ -92,6 +96,7 @@ def test_cli_sync_pull_twice(self):
9296 self .assertIn ("Skipping 12 items" , result .output )
9397 self .assertIn ("Done!" , result .output )
9498
99+ @retry_assertion
95100 def test_cli_sync_pull_out_of_sync (self ):
96101 self ._upload_sync_files (TEST_FILES_DIR )
97102
0 commit comments