From 29b220a50d90ca580aef5b93fa5879d14f08c3ba Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Thu, 27 Mar 2025 18:28:27 -0400 Subject: [PATCH] Silence test --- tests/worker/test_update_with_start.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/worker/test_update_with_start.py b/tests/worker/test_update_with_start.py index 6302ee51e..e399d39ee 100644 --- a/tests/worker/test_update_with_start.py +++ b/tests/worker/test_update_with_start.py @@ -838,19 +838,21 @@ async def __call__( with patch.object( client.workflow_service, "execute_multi_operation", execute_multi_operation() ): + start_workflow_operation = WithStartWorkflowOperation( + UpdateWithStartInterceptorWorkflow.run, + "wf-arg", + id=f"wf-{uuid.uuid4()}", + task_queue="tq", + id_conflict_policy=WorkflowIDConflictPolicy.FAIL, + ) with pytest.raises(RPCError) as err: await client.start_update_with_start_workflow( UpdateWithStartInterceptorWorkflow.my_update, "original-update-arg", - start_workflow_operation=WithStartWorkflowOperation( - UpdateWithStartInterceptorWorkflow.run, - "wf-arg", - id=f"wf-{uuid.uuid4()}", - task_queue="tq", - id_conflict_policy=WorkflowIDConflictPolicy.FAIL, - ), + start_workflow_operation=start_workflow_operation, wait_for_stage=WorkflowUpdateStage.ACCEPTED, ) + _ = start_workflow_operation._workflow_handle.exception() assert err.value.status == RPCStatusCode.INTERNAL assert err.value.message == "empty details" assert len(err.value.grpc_status.details) == 0