@@ -415,34 +415,6 @@ def make_start_op(workflow_id: str):
415415 await aw
416416
417417
418- async def test_workflow_update_poll_loop (client : Client ):
419- # TODO: mock server to test retry loop
420- pytest .skip (
421- "It's too slow to actually do this in the test suite: retries occur every 20s"
422- )
423- start_op = WithStartWorkflowOperation (
424- NeverExecutedWorkflow .run ,
425- id = f"wf-{ uuid .uuid4 ()} " ,
426- task_queue = "does-not-exist" ,
427- id_conflict_policy = WorkflowIDConflictPolicy .FAIL ,
428- )
429- with patch .object (
430- client .workflow_service ,
431- "execute_multi_operation" ,
432- wraps = client .workflow_service .execute_multi_operation ,
433- ) as workflow_service_method :
434- try :
435- await client .execute_update_with_start_workflow (
436- NeverExecutedWorkflow .do_update ,
437- start_workflow_operation = start_op ,
438- )
439- except :
440- print (
441- f"execute_multi_operation was called { workflow_service_method .call_count } times"
442- )
443- raise
444-
445-
446418class SimpleClientInterceptor (Interceptor ):
447419 def intercept_client (self , next : OutboundInterceptor ) -> OutboundInterceptor :
448420 return SimpleClientOutboundInterceptor (super ().intercept_client (next ))
0 commit comments