Skip to content

Commit 0fa8f33

Browse files
committed
Skip nexus tests under Java test server
1 parent b40d310 commit 0fa8f33

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_serialization_context.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
WorkflowSerializationContext,
4343
)
4444
from temporalio.exceptions import ApplicationError
45+
from temporalio.testing import WorkflowEnvironment
4546
from temporalio.worker import Worker
4647
from temporalio.worker._workflow_instance import UnsandboxedWorkflowRunner
4748
from tests.helpers.nexus import create_nexus_endpoint, make_nexus_endpoint_name
@@ -1640,12 +1641,15 @@ async def run(self, data: str) -> None:
16401641

16411642

16421643
async def test_nexus_payload_codec_operations_lack_context(
1643-
client: Client,
1644+
env: WorkflowEnvironment,
16441645
):
16451646
"""
16461647
encode() and decode() on nexus payloads should not have any context set.
16471648
"""
1648-
config = client.config()
1649+
if env.supports_time_skipping:
1650+
pytest.skip("Nexus tests don't work with the Java test server")
1651+
1652+
config = env.client.config()
16491653
config["data_converter"] = dataclasses.replace(
16501654
DataConverter.default,
16511655
payload_codec=AssertNexusLacksContextPayloadCodec(),

0 commit comments

Comments
 (0)