Skip to content

Commit

Permalink
Poll for two minutes instead of hardcoded wait
Browse files Browse the repository at this point in the history
  • Loading branch information
stefpiatek committed Feb 2, 2024
1 parent de73920 commit 4bff8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/scripts/check_entry_in_orthanc_anon_for_2_min.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
instances_cmd = shlex.split('docker exec system-test-orthanc-anon-1 curl -u "orthanc_anon_username:orthanc_anon_password" http://orthanc-anon:8042/instances')
instances_output = subprocess.run(instances_cmd, capture_output=True, check=True, text=True)
instances = json.loads(instances_output.stdout)
print("orthanc-anon instances:", instances)
print(f"Waited for {seconds} seconds, orthanc-anon instances: {instances}")
if len(instances) == 2:
break
sleep(SECONDS_WAIT)
Expand Down

0 comments on commit 4bff8b9

Please sign in to comment.