Skip to content

Commit

Permalink
Fix invocation cancel test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Oct 12, 2023
1 parent ea97fe7 commit d82aa95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/galaxy_test/api/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -3983,7 +3983,12 @@ def test_cancel_workflow_invocation(self):
invocation_url = self._api_url(f"workflows/{uploaded_workflow_id}/usage/{invocation_id}", use_key=True)
delete_response = delete(invocation_url)
self._assert_status_code_is(delete_response, 200)

self.workflow_populator.wait_for_invocation_and_jobs(
history_id=history_id,
workflow_id=uploaded_workflow_id,
invocation_id=invocation_id,
assert_ok=False,
)
invocation = self._invocation_details(uploaded_workflow_id, invocation_id)
assert invocation["state"] == "cancelled"
message = invocation["messages"][0]
Expand Down

0 comments on commit d82aa95

Please sign in to comment.