Mercurial > hg > orthanc-tests
changeset 811:9e8ae918f6c1
try to fix DelayedDeletion tests on Github runners
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 08 May 2025 09:54:04 +0200 |
parents | f0dff6f2b779 |
children | ef5a96a8adeb |
files | NewTests/DelayedDeletion/test_delayed_deletion.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 ..)