File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -838,19 +838,21 @@ async def __call__(
838
838
with patch .object (
839
839
client .workflow_service , "execute_multi_operation" , execute_multi_operation ()
840
840
):
841
+ start_workflow_operation = WithStartWorkflowOperation (
842
+ UpdateWithStartInterceptorWorkflow .run ,
843
+ "wf-arg" ,
844
+ id = f"wf-{ uuid .uuid4 ()} " ,
845
+ task_queue = "tq" ,
846
+ id_conflict_policy = WorkflowIDConflictPolicy .FAIL ,
847
+ )
841
848
with pytest .raises (RPCError ) as err :
842
849
await client .start_update_with_start_workflow (
843
850
UpdateWithStartInterceptorWorkflow .my_update ,
844
851
"original-update-arg" ,
845
- start_workflow_operation = WithStartWorkflowOperation (
846
- UpdateWithStartInterceptorWorkflow .run ,
847
- "wf-arg" ,
848
- id = f"wf-{ uuid .uuid4 ()} " ,
849
- task_queue = "tq" ,
850
- id_conflict_policy = WorkflowIDConflictPolicy .FAIL ,
851
- ),
852
+ start_workflow_operation = start_workflow_operation ,
852
853
wait_for_stage = WorkflowUpdateStage .ACCEPTED ,
853
854
)
855
+ _ = start_workflow_operation ._workflow_handle .exception ()
854
856
assert err .value .status == RPCStatusCode .INTERNAL
855
857
assert err .value .message == "empty details"
856
858
assert len (err .value .grpc_status .details ) == 0
You can’t perform that action at this time.
0 commit comments