Skip to content

Commit a64791c

Browse files
committed
Different attempt at fixing test flake
1 parent ecd1fd7 commit a64791c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/worker/test_interceptor.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import pytest
77

8-
from temporalio import activity, workflow
8+
from temporalio import activity, worker, workflow
99
from temporalio.client import Client, WorkflowUpdateFailedError
1010
from temporalio.exceptions import ApplicationError
1111
from temporalio.testing import WorkflowEnvironment
@@ -204,6 +204,8 @@ async def test_worker_interceptor(client: Client, env: WorkflowEnvironment):
204204
workflows=[InterceptedWorkflow],
205205
activities=[intercepted_activity],
206206
interceptors=[TracingWorkerInterceptor()],
207+
# TODO: This test shouldn't need it, but frequently fails with strange import issues
208+
workflow_runner=worker.UnsandboxedWorkflowRunner(),
207209
):
208210
# Run workflow
209211
handle = await client.start_workflow(
@@ -317,6 +319,8 @@ async def test_workflow_instance_access_from_interceptor(client: Client):
317319
task_queue=task_queue,
318320
workflows=[WorkflowInstanceAccessWorkflow],
319321
interceptors=[WorkflowInstanceAccessInterceptor()],
322+
# TODO: This test shouldn't need it, but frequently fails with strange import issues
323+
workflow_runner=worker.UnsandboxedWorkflowRunner(),
320324
):
321325
difference = await client.execute_workflow(
322326
WorkflowInstanceAccessWorkflow.run,

0 commit comments

Comments
 (0)