Skip to content

Commit

Permalink
Skip update tests under Java test server
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jul 22, 2024
1 parent c6bdd12 commit 62f24a2
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions tests/updates_and_signals/safe_message_handlers/workflow_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import asyncio
import uuid

import pytest
from temporalio.client import Client, WorkflowUpdateFailedError
from temporalio.exceptions import ApplicationError
from temporalio.testing import WorkflowEnvironment
from temporalio.worker import Worker

from updates_and_signals.safe_message_handlers.activities import (
Expand All @@ -18,7 +20,11 @@
)


async def test_safe_message_handlers(client: Client):
async def test_safe_message_handlers(client: Client, env: WorkflowEnvironment):
if env.supports_time_skipping:
pytest.skip(
"Java test server: https://github.com/temporalio/sdk-java/issues/1903"
)
task_queue = f"tq-{uuid.uuid4()}"
async with Worker(
client,
Expand Down Expand Up @@ -66,7 +72,11 @@ async def test_safe_message_handlers(client: Client):
assert result.num_currently_assigned_nodes == 0


async def test_update_idempotency(client: Client):
async def test_update_idempotency(client: Client, env: WorkflowEnvironment):
if env.supports_time_skipping:
pytest.skip(
"Java test server: https://github.com/temporalio/sdk-java/issues/1903"
)
task_queue = f"tq-{uuid.uuid4()}"
async with Worker(
client,
Expand Down Expand Up @@ -101,7 +111,11 @@ async def test_update_idempotency(client: Client):
assert result_1.nodes_assigned >= result_2.nodes_assigned


async def test_update_failure(client: Client):
async def test_update_failure(client: Client, env: WorkflowEnvironment):
if env.supports_time_skipping:
pytest.skip(
"Java test server: https://github.com/temporalio/sdk-java/issues/1903"
)
task_queue = f"tq-{uuid.uuid4()}"
async with Worker(
client,
Expand Down

0 comments on commit 62f24a2

Please sign in to comment.