From d82aa95a6fb28ff1d0219603cf03acfcce777eea Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Thu, 12 Oct 2023 08:00:30 +0100 Subject: [PATCH] Fix invocation cancel test --- lib/galaxy_test/api/test_workflows.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/galaxy_test/api/test_workflows.py b/lib/galaxy_test/api/test_workflows.py index 1efe6f0e768e..d4b6d72adf5c 100644 --- a/lib/galaxy_test/api/test_workflows.py +++ b/lib/galaxy_test/api/test_workflows.py @@ -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]