Skip to content

Commit 885920a

Browse files
committed
Skip nexus tests under java test server
1 parent 6d4a0c2 commit 885920a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/hello_nexus/hello_nexus_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import asyncio
22

3+
import pytest
34
from temporalio.client import Client
5+
from temporalio.testing import WorkflowEnvironment
46

57
import hello_nexus.caller.app
68
import hello_nexus.caller.workflows
79
import hello_nexus.handler.worker
810
from tests.hello_nexus.helpers import create_nexus_endpoint, delete_nexus_endpoint
911

1012

11-
async def test_nexus_service_basic(client: Client):
13+
async def test_nexus_service_basic(client: Client, env: WorkflowEnvironment):
14+
if env.supports_time_skipping:
15+
pytest.skip("Nexus tests don't work under the Java test server")
1216
create_response = await create_nexus_endpoint(
1317
name=hello_nexus.caller.workflows.NEXUS_ENDPOINT,
1418
task_queue=hello_nexus.handler.worker.TASK_QUEUE,

0 commit comments

Comments
 (0)