# HG changeset patch # User Alain Mazy # Date 1759736008 -7200 # Node ID 2981e138038c178464dc00d4376d71cc36daac83 # Parent 6403b6da775ec545ab7a53f45a0d61d072773363 transfer tests for future version diff -r 6403b6da775e -r 2981e138038c NewTests/Concurrency/test_transfer.py --- a/NewTests/Concurrency/test_transfer.py Mon Sep 22 12:25:42 2025 +0200 +++ b/NewTests/Concurrency/test_transfer.py Mon Oct 06 09:33:28 2025 +0200 @@ -63,13 +63,16 @@ def test_push(self): oa, ob = self.clean_start() - populator = OrthancTestDbPopulator(oa, studies_count=2, series_count=2, instances_count=200, random_seed=65) + if oa.is_plugin_version_at_least("transfers", 1, 6, 0): # need the PeerCommitTimeout config set to 600 + populator = OrthancTestDbPopulator(oa, studies_count=5, series_count=2, instances_count=300, random_seed=65) + else: + populator = OrthancTestDbPopulator(oa, studies_count=2, series_count=2, instances_count=200, random_seed=65) populator.execute() all_studies_ids = oa.studies.get_all_ids() instances_count = oa.get_statistics().instances_count disk_size = oa.get_statistics().total_disk_size - repeat_count = 2 + repeat_count = 1 for compression in [True, False]: start_time = time.time() @@ -101,13 +104,16 @@ def test_pull(self): oa, ob = self.clean_start() - populator = OrthancTestDbPopulator(ob, studies_count=2, series_count=2, instances_count=200, random_seed=65) + if oa.is_plugin_version_at_least("transfers", 1, 6, 0): # need the PeerCommitTimeout config set to 600 + populator = OrthancTestDbPopulator(oa, studies_count=5, series_count=2, instances_count=300, random_seed=65) + else: + populator = OrthancTestDbPopulator(oa, studies_count=2, series_count=2, instances_count=200, random_seed=65) populator.execute() all_studies_ids = ob.studies.get_all_ids() instances_count = ob.get_statistics().instances_count disk_size = ob.get_statistics().total_disk_size - repeat_count = 2 + repeat_count = 1 for compression in [True, False]: start_time = time.time()