@@ -398,7 +398,7 @@ async def test_replayer_command_reordering_backward_compatibility() -> None:
398
398
)
399
399
400
400
401
- workflow_res = None
401
+ test_replayer_workflow_res = None
402
402
403
403
404
404
class WorkerWorkflowResultInterceptor (Interceptor ):
@@ -410,9 +410,9 @@ def workflow_interceptor_class(
410
410
411
411
class WorkflowResultInterceptor (WorkflowInboundInterceptor ):
412
412
async def execute_workflow (self , input : ExecuteWorkflowInput ) -> Any :
413
- global workflow_res
413
+ global test_replayer_workflow_res
414
414
res = await super ().execute_workflow (input )
415
- workflow_res = res
415
+ test_replayer_workflow_res = res
416
416
return res
417
417
418
418
@@ -471,7 +471,7 @@ async def test_replayer_async_ordering() -> None:
471
471
workflows = [SignalsActivitiesTimersUpdatesTracingWorkflow ],
472
472
interceptors = [WorkerWorkflowResultInterceptor ()],
473
473
).replay_workflow (WorkflowHistory .from_json ("fake" , history ))
474
- assert workflow_res == expected
474
+ assert test_replayer_workflow_res == expected
475
475
476
476
477
477
async def test_replayer_alternate_async_ordering () -> None :
@@ -483,4 +483,10 @@ async def test_replayer_alternate_async_ordering() -> None:
483
483
workflows = [ActivityAndSignalsWhileWorkflowDown ],
484
484
interceptors = [WorkerWorkflowResultInterceptor ()],
485
485
).replay_workflow (WorkflowHistory .from_json ("fake" , history ))
486
- assert workflow_res == ["act-start" , "sig-1" , "sig-2" , "counter-2" , "act-done" ]
486
+ assert test_replayer_workflow_res == [
487
+ "act-start" ,
488
+ "sig-1" ,
489
+ "sig-2" ,
490
+ "counter-2" ,
491
+ "act-done" ,
492
+ ]
0 commit comments