changeset 725:90dfc48b89a7 find-refactoring

increased transfer timeout
author Alain Mazy <am@orthanc.team>
date Fri, 18 Oct 2024 10:40:36 +0200
parents 765446710507
children 5dd69b8307f4
files NewTests/Concurrency/docker-compose-transfers-concurrency.yml NewTests/Concurrency/test_transfer.py
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NewTests/Concurrency/docker-compose-transfers-concurrency.yml	Fri Oct 18 10:04:51 2024 +0200
+++ b/NewTests/Concurrency/docker-compose-transfers-concurrency.yml	Fri Oct 18 10:40:36 2024 +0200
@@ -11,6 +11,8 @@
     environment:
       VERBOSE_ENABLED: "true"
       TRANSFERS_PLUGIN_ENABLED: "true"
+      # increase this timeout for large transfers
+      ORTHANC__TRANSFERS__PEER_CONNECTIVITY_TIMEOUT: "10"
       # disable DICOMWEB to avoid the metadata cache to consume disk space after StableStudy -> difficult to compare disk sizes
       DICOM_WEB_PLUGIN_ENABLED: "false"
       ORTHANC__POSTGRESQL: |
@@ -41,6 +43,8 @@
     environment:
       VERBOSE_ENABLED: "true"
       TRANSFERS_PLUGIN_ENABLED: "true"
+      # increase this timeout for large transfers
+      ORTHANC__TRANSFERS__PEER_CONNECTIVITY_TIMEOUT: "10"
       DICOM_WEB_PLUGIN_ENABLED: "false"
       ORTHANC__POSTGRESQL: |
         {
--- a/NewTests/Concurrency/test_transfer.py	Fri Oct 18 10:04:51 2024 +0200
+++ b/NewTests/Concurrency/test_transfer.py	Fri Oct 18 10:40:36 2024 +0200
@@ -110,7 +110,8 @@
                 job = oa.jobs.get(orthanc_id=remote_job.remote_job_id)
                 job.wait_completed(polling_interval=0.1)
 
-                self.assertTrue(job.is_complete())
+                job.refresh()
+                self.assertEqual("Success", job.status)
                 self.assertEqual(instances_count, oa.get_statistics().instances_count)
                 self.assertEqual(disk_size, oa.get_statistics().total_disk_size)
                 oa.delete_all_content()