Skip to content

Commit 65b10bf

Browse files
authored
Silence passing test (#804)
1 parent d219870 commit 65b10bf

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/worker/test_update_with_start.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -838,19 +838,21 @@ async def __call__(
838838
with patch.object(
839839
client.workflow_service, "execute_multi_operation", execute_multi_operation()
840840
):
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+
)
841848
with pytest.raises(RPCError) as err:
842849
await client.start_update_with_start_workflow(
843850
UpdateWithStartInterceptorWorkflow.my_update,
844851
"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,
852853
wait_for_stage=WorkflowUpdateStage.ACCEPTED,
853854
)
855+
_ = start_workflow_operation._workflow_handle.exception()
854856
assert err.value.status == RPCStatusCode.INTERNAL
855857
assert err.value.message == "empty details"
856858
assert len(err.value.grpc_status.details) == 0

0 commit comments

Comments
 (0)