changeset 724:765446710507 find-refactoring

debug tests
author Alain Mazy <am@orthanc.team>
date Fri, 18 Oct 2024 10:04:51 +0200
parents 5085b83b8eec
children 90dfc48b89a7
files NewTests/Concurrency/docker-compose-transfers-concurrency.yml NewTests/Concurrency/test_transfer.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NewTests/Concurrency/docker-compose-transfers-concurrency.yml	Tue Oct 15 15:53:00 2024 +0200
+++ b/NewTests/Concurrency/docker-compose-transfers-concurrency.yml	Fri Oct 18 10:04:51 2024 +0200
@@ -9,7 +9,7 @@
     ports: ["8062:8042"]
     volumes: ["storage-orthanc-a:/var/lib/orthanc/db"]
     environment:
-      # VERBOSE_ENABLED: "true"
+      VERBOSE_ENABLED: "true"
       TRANSFERS_PLUGIN_ENABLED: "true"
       # disable DICOMWEB to avoid the metadata cache to consume disk space after StableStudy -> difficult to compare disk sizes
       DICOM_WEB_PLUGIN_ENABLED: "false"
@@ -39,7 +39,7 @@
     ports: ["8063:8042"]
     volumes: ["storage-orthanc-b:/var/lib/orthanc/db"]
     environment:
-      # VERBOSE_ENABLED: "true"
+      VERBOSE_ENABLED: "true"
       TRANSFERS_PLUGIN_ENABLED: "true"
       DICOM_WEB_PLUGIN_ENABLED: "false"
       ORTHANC__POSTGRESQL: |
--- a/NewTests/Concurrency/test_transfer.py	Tue Oct 15 15:53:00 2024 +0200
+++ b/NewTests/Concurrency/test_transfer.py	Fri Oct 18 10:04:51 2024 +0200
@@ -110,6 +110,7 @@
                 job = oa.jobs.get(orthanc_id=remote_job.remote_job_id)
                 job.wait_completed(polling_interval=0.1)
 
+                self.assertTrue(job.is_complete())
                 self.assertEqual(instances_count, oa.get_statistics().instances_count)
                 self.assertEqual(disk_size, oa.get_statistics().total_disk_size)
                 oa.delete_all_content()