# HG changeset patch # User Alain Mazy # Date 1746690844 -7200 # Node ID 9e8ae918f6c1620f85502abbce345057c549661c # Parent f0dff6f2b77969b45d543db09318f280a6c1b3cc try to fix DelayedDeletion tests on Github runners diff -r f0dff6f2b779 -r 9e8ae918f6c1 NewTests/DelayedDeletion/test_delayed_deletion.py --- a/NewTests/DelayedDeletion/test_delayed_deletion.py Thu May 08 09:45:33 2025 +0200 +++ b/NewTests/DelayedDeletion/test_delayed_deletion.py Thu May 08 09:54:04 2025 +0200 @@ -8,6 +8,7 @@ import pathlib import glob +import pprint here = pathlib.Path(__file__).parent.resolve() @@ -98,15 +99,19 @@ def test_resumes_pending_deletion(self): + plugin_status = self.o.get_json("plugins/delayed-deletion/status") + pprint.pprint(plugin_status) + completed = False while not completed: print('-------------- waiting for DelayedDeletion to finish processing') time.sleep(1) plugin_status = self.o.get_json("plugins/delayed-deletion/status") + pprint.pprint(plugin_status) completed = plugin_status["FilesPendingDeletion"] == 0 self.assertTrue(completed) - time.sleep(3) # in CI on Github, it seems we need some time for the files to be deleted ! + time.sleep(10) # in CI on Github, it seems we need some time for the files to be deleted ! files_count_after_delayed_deletion_is_complete = len(glob.glob(os.path.join(self.get_storage_path("DelayedDeletion"), "**"), recursive=True)) self.assertGreater(10, files_count_after_delayed_deletion_is_complete) # only the sqlite files shall remain (and . and ..)