File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5736,11 +5736,12 @@ async def _run_workflow_and_get_warning(self) -> bool:
5736
5736
if self .handler_waiting == "-wait-all-handlers-finish-" :
5737
5737
await update_task
5738
5738
else :
5739
- with pytest .raises (RPCError ) as update_err :
5739
+ with pytest .raises (WorkflowUpdateFailedError ) as err_info :
5740
5740
await update_task
5741
- assert update_err .value .status == RPCStatusCode .NOT_FOUND and (
5742
- str (update_err .value ).lower ()
5743
- == "workflow execution already completed"
5741
+ update_err = err_info .value
5742
+ assert isinstance (update_err .cause , ApplicationError )
5743
+ assert (
5744
+ update_err .cause .type == "AcceptedUpdateCompletedWorkflow"
5744
5745
)
5745
5746
5746
5747
with pytest .raises (WorkflowFailureError ) as err :
You can’t perform that action at this time.
0 commit comments