@@ -1494,7 +1494,7 @@ async def test_workflow_with_codec(client: Client, env: WorkflowEnvironment):
14941494 await test_workflow_signal_and_query (client )
14951495 await test_workflow_signal_and_query_errors (client )
14961496 await test_workflow_simple_activity (client )
1497- await test_workflow_update_handlers_happy (client , env )
1497+ await test_workflow_update_handlers_happy (client )
14981498
14991499
15001500class PassThroughCodec (PayloadCodec ):
@@ -4268,11 +4268,7 @@ def throws_runtime_err(self) -> None:
42684268 raise RuntimeError ("intentional failure" )
42694269
42704270
4271- async def test_workflow_update_handlers_happy (client : Client , env : WorkflowEnvironment ):
4272- if env .supports_time_skipping :
4273- pytest .skip (
4274- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4275- )
4271+ async def test_workflow_update_handlers_happy (client : Client ):
42764272 async with new_worker (
42774273 client , UpdateHandlersWorkflow , activities = [say_hello ]
42784274 ) as worker :
@@ -4314,13 +4310,7 @@ async def test_workflow_update_handlers_happy(client: Client, env: WorkflowEnvir
43144310 )
43154311
43164312
4317- async def test_workflow_update_handlers_unhappy (
4318- client : Client , env : WorkflowEnvironment
4319- ):
4320- if env .supports_time_skipping :
4321- pytest .skip (
4322- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4323- )
4313+ async def test_workflow_update_handlers_unhappy (client : Client ):
43244314 async with new_worker (client , UpdateHandlersWorkflow ) as worker :
43254315 handle = await client .start_workflow (
43264316 UpdateHandlersWorkflow .run ,
@@ -4393,11 +4383,7 @@ async def test_workflow_update_handlers_unhappy(
43934383 assert "Rejected" == err .value .cause .message
43944384
43954385
4396- async def test_workflow_update_task_fails (client : Client , env : WorkflowEnvironment ):
4397- if env .supports_time_skipping :
4398- pytest .skip (
4399- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4400- )
4386+ async def test_workflow_update_task_fails (client : Client ):
44014387 # Need to not sandbox so behavior can change based on globals
44024388 async with new_worker (
44034389 client , UpdateHandlersWorkflow , workflow_runner = UnsandboxedWorkflowRunner ()
@@ -4442,13 +4428,7 @@ def got_update(self) -> str:
44424428 return self ._got_update
44434429
44444430
4445- async def test_workflow_update_before_worker_start (
4446- client : Client , env : WorkflowEnvironment
4447- ):
4448- if env .supports_time_skipping :
4449- pytest .skip (
4450- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4451- )
4431+ async def test_workflow_update_before_worker_start (client : Client ):
44524432 # In order to confirm that all started workflows get updates before the
44534433 # workflow completes, this test will start a workflow and start an update.
44544434 # Only then will it start the worker to process both in the task. The
@@ -4516,13 +4496,7 @@ async def signal(self) -> None:
45164496 self ._complete_update = True
45174497
45184498
4519- async def test_workflow_update_separate_handle (
4520- client : Client , env : WorkflowEnvironment
4521- ):
4522- if env .supports_time_skipping :
4523- pytest .skip (
4524- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4525- )
4499+ async def test_workflow_update_separate_handle (client : Client ):
45264500 async with new_worker (client , UpdateSeparateHandleWorkflow ) as worker :
45274501 # Start the workflow
45284502 handle = await client .start_workflow (
@@ -4562,14 +4536,7 @@ async def do_update(self, sleep: float) -> None:
45624536 await asyncio .sleep (sleep )
45634537
45644538
4565- async def test_workflow_update_timeout_or_cancel (
4566- client : Client , env : WorkflowEnvironment
4567- ):
4568- if env .supports_time_skipping :
4569- pytest .skip (
4570- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4571- )
4572-
4539+ async def test_workflow_update_timeout_or_cancel (client : Client ):
45734540 # Confirm start timeout via short timeout on update w/ no worker running
45744541 handle = await client .start_workflow (
45754542 UpdateTimeoutOrCancelWorkflow .run ,
@@ -4859,14 +4826,7 @@ async def run(self, scenario: FailureTypesScenario) -> None:
48594826 await super ().run (scenario )
48604827
48614828
4862- async def test_workflow_failure_types_configured (
4863- client : Client , env : WorkflowEnvironment
4864- ):
4865- if env .supports_time_skipping :
4866- pytest .skip (
4867- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4868- )
4869-
4829+ async def test_workflow_failure_types_configured (client : Client ):
48704830 # Asserter for a single scenario
48714831 async def assert_scenario (
48724832 workflow : Type [FailureTypesWorkflowBase ],
@@ -5250,11 +5210,7 @@ async def get_update_id(self) -> str:
52505210 return info .id
52515211
52525212
5253- async def test_workflow_current_update (client : Client , env : WorkflowEnvironment ):
5254- if env .supports_time_skipping :
5255- pytest .skip (
5256- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5257- )
5213+ async def test_workflow_current_update (client : Client ):
52585214 async with new_worker (client , CurrentUpdateWorkflow ) as worker :
52595215 handle = await client .start_workflow (
52605216 CurrentUpdateWorkflow .run ,
@@ -5325,11 +5281,7 @@ async def my_signal_WARN_AND_ABANDON(self):
53255281 await self ._do_update_or_signal ()
53265282
53275283
5328- async def test_unfinished_update_handler (client : Client , env : WorkflowEnvironment ):
5329- if env .supports_time_skipping :
5330- pytest .skip (
5331- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5332- )
5284+ async def test_unfinished_update_handler (client : Client ):
53335285 async with new_worker (client , UnfinishedHandlersWarningsWorkflow ) as worker :
53345286 test = _UnfinishedHandlersWarningsTest (client , worker , "update" )
53355287 await test .test_wait_all_handlers_finished_and_unfinished_handlers_warning ()
@@ -5566,7 +5518,6 @@ async def my_dynamic_signal(self, name: str, args: Sequence[RawValue]) -> None:
55665518)
55675519async def test_unfinished_handler_on_workflow_termination (
55685520 client : Client ,
5569- env : WorkflowEnvironment ,
55705521 handler_type : Literal ["-signal-" , "-update-" ],
55715522 handler_registration : Literal ["-late-registered-" , "-not-late-registered-" ],
55725523 handler_dynamism : Literal ["-dynamic-" , "-not-dynamic-" ],
@@ -5577,10 +5528,6 @@ async def test_unfinished_handler_on_workflow_termination(
55775528 "-cancellation-" , "-failure-" , "-continue-as-new-"
55785529 ],
55795530):
5580- if handler_type == "-update-" and env .supports_time_skipping :
5581- pytest .skip (
5582- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5583- )
55845531 await _UnfinishedHandlersOnWorkflowTerminationTest (
55855532 client ,
55865533 handler_type ,
@@ -5793,12 +5740,7 @@ async def my_update(self) -> str:
57935740
57945741async def test_update_completion_is_honored_when_after_workflow_return_1 (
57955742 client : Client ,
5796- env : WorkflowEnvironment ,
57975743):
5798- if env .supports_time_skipping :
5799- pytest .skip (
5800- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5801- )
58025744 update_id = "my-update"
58035745 task_queue = "tq"
58045746 wf_handle = await client .start_workflow (
@@ -5851,10 +5793,6 @@ async def test_update_completion_is_honored_when_after_workflow_return_2(
58515793 client : Client ,
58525794 env : WorkflowEnvironment ,
58535795):
5854- if env .supports_time_skipping :
5855- pytest .skip (
5856- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5857- )
58585796 async with Worker (
58595797 client ,
58605798 task_queue = "tq" ,
0 commit comments