Skip to content

Commit 9f9c289

Browse files
committed
fix test
Signed-off-by: Tim Li <[email protected]>
1 parent 918d128 commit 9f9c289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cadence/worker/test_task_handler_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def track_context_activation():
123123
context_activated = True
124124

125125
with patch('cadence.worker._decision_task_handler.WorkflowEngine', return_value=mock_engine):
126-
with patch('cadence.worker._decision_task_handler.Context') as mock_context_class:
126+
with patch('cadence._internal.workflow.workflow_engine.Context') as mock_context_class:
127127
mock_context = Mock()
128128
mock_context._activate = Mock(return_value=contextmanager(lambda: track_context_activation())())
129129
mock_context_class.return_value = mock_context
@@ -239,7 +239,7 @@ def track_context_cleanup():
239239
context_cleaned_up = True
240240

241241
with patch('cadence.worker._decision_task_handler.WorkflowEngine', return_value=mock_engine):
242-
with patch('cadence.worker._decision_task_handler.Context') as mock_context_class:
242+
with patch('cadence._internal.workflow.workflow_engine.Context') as mock_context_class:
243243
mock_context = Mock()
244244
mock_context._activate = Mock(return_value=contextmanager(lambda: track_context_cleanup())())
245245
mock_context_class.return_value = mock_context

0 commit comments

Comments
 (0)