Skip to content

Commit

Permalink
fix post -> get
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Jan 25, 2024
1 parent a57b8ea commit ff5e41e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/network/test_processing_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_processing_server_workflow_request():
path_to_dummy_wf = "/tmp/assets/dummy-workflow.txt"

# submit the workflow job
test_url = f"{PROCESSING_SERVER_URL}/workflow/run?mets_path={path_to_mets}&page_wise=False"
test_url = f"{PROCESSING_SERVER_URL}/workflow/run?mets_path={path_to_mets}&page_wise=True"
response = post(
url=test_url,
files={"workflow": open(path_to_dummy_wf, 'rb')}
Expand All @@ -72,7 +72,7 @@ def test_processing_server_workflow_request():
test_url = f"{PROCESSING_SERVER_URL}/workflow/job-simple/{wf_job_id}"
while tries > 0:
sleep(wait_between_tries)
response = post(url=test_url)
response = get(url=test_url)
assert response.status_code == 200, f"Processing server: {test_url}, {response.status_code}"
wf_job_state = response.json()["wf_job_state"]
if wf_job_state == StateEnum.success or wf_job_state == StateEnum.failed:
Expand Down

0 comments on commit ff5e41e

Please sign in to comment.