@@ -4245,11 +4245,7 @@ def throws_runtime_err(self) -> None:
4245
4245
raise RuntimeError ("intentional failure" )
4246
4246
4247
4247
4248
- async def test_workflow_update_handlers_happy (client : Client , env : WorkflowEnvironment ):
4249
- if env .supports_time_skipping :
4250
- pytest .skip (
4251
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4252
- )
4248
+ async def test_workflow_update_handlers_happy (client : Client ):
4253
4249
async with new_worker (
4254
4250
client , UpdateHandlersWorkflow , activities = [say_hello ]
4255
4251
) as worker :
@@ -4291,13 +4287,7 @@ async def test_workflow_update_handlers_happy(client: Client, env: WorkflowEnvir
4291
4287
)
4292
4288
4293
4289
4294
- async def test_workflow_update_handlers_unhappy (
4295
- client : Client , env : WorkflowEnvironment
4296
- ):
4297
- if env .supports_time_skipping :
4298
- pytest .skip (
4299
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4300
- )
4290
+ async def test_workflow_update_handlers_unhappy (client : Client ):
4301
4291
async with new_worker (client , UpdateHandlersWorkflow ) as worker :
4302
4292
handle = await client .start_workflow (
4303
4293
UpdateHandlersWorkflow .run ,
@@ -4370,11 +4360,7 @@ async def test_workflow_update_handlers_unhappy(
4370
4360
assert "Rejected" == err .value .cause .message
4371
4361
4372
4362
4373
- async def test_workflow_update_task_fails (client : Client , env : WorkflowEnvironment ):
4374
- if env .supports_time_skipping :
4375
- pytest .skip (
4376
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4377
- )
4363
+ async def test_workflow_update_task_fails (client : Client ):
4378
4364
# Need to not sandbox so behavior can change based on globals
4379
4365
async with new_worker (
4380
4366
client , UpdateHandlersWorkflow , workflow_runner = UnsandboxedWorkflowRunner ()
@@ -4419,13 +4405,7 @@ def got_update(self) -> str:
4419
4405
return self ._got_update
4420
4406
4421
4407
4422
- async def test_workflow_update_before_worker_start (
4423
- client : Client , env : WorkflowEnvironment
4424
- ):
4425
- if env .supports_time_skipping :
4426
- pytest .skip (
4427
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4428
- )
4408
+ async def test_workflow_update_before_worker_start (client : Client ):
4429
4409
# In order to confirm that all started workflows get updates before the
4430
4410
# workflow completes, this test will start a workflow and start an update.
4431
4411
# Only then will it start the worker to process both in the task. The
@@ -4493,13 +4473,7 @@ async def signal(self) -> None:
4493
4473
self ._complete_update = True
4494
4474
4495
4475
4496
- async def test_workflow_update_separate_handle (
4497
- client : Client , env : WorkflowEnvironment
4498
- ):
4499
- if env .supports_time_skipping :
4500
- pytest .skip (
4501
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4502
- )
4476
+ async def test_workflow_update_separate_handle (client : Client ):
4503
4477
async with new_worker (client , UpdateSeparateHandleWorkflow ) as worker :
4504
4478
# Start the workflow
4505
4479
handle = await client .start_workflow (
@@ -4539,14 +4513,7 @@ async def do_update(self, sleep: float) -> None:
4539
4513
await asyncio .sleep (sleep )
4540
4514
4541
4515
4542
- async def test_workflow_update_timeout_or_cancel (
4543
- client : Client , env : WorkflowEnvironment
4544
- ):
4545
- if env .supports_time_skipping :
4546
- pytest .skip (
4547
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4548
- )
4549
-
4516
+ async def test_workflow_update_timeout_or_cancel (client : Client ):
4550
4517
# Confirm start timeout via short timeout on update w/ no worker running
4551
4518
handle = await client .start_workflow (
4552
4519
UpdateTimeoutOrCancelWorkflow .run ,
@@ -4836,14 +4803,7 @@ async def run(self, scenario: FailureTypesScenario) -> None:
4836
4803
await super ().run (scenario )
4837
4804
4838
4805
4839
- async def test_workflow_failure_types_configured (
4840
- client : Client , env : WorkflowEnvironment
4841
- ):
4842
- if env .supports_time_skipping :
4843
- pytest .skip (
4844
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4845
- )
4846
-
4806
+ async def test_workflow_failure_types_configured (client : Client ):
4847
4807
# Asserter for a single scenario
4848
4808
async def assert_scenario (
4849
4809
workflow : Type [FailureTypesWorkflowBase ],
@@ -5227,11 +5187,7 @@ async def get_update_id(self) -> str:
5227
5187
return info .id
5228
5188
5229
5189
5230
- async def test_workflow_current_update (client : Client , env : WorkflowEnvironment ):
5231
- if env .supports_time_skipping :
5232
- pytest .skip (
5233
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5234
- )
5190
+ async def test_workflow_current_update (client : Client ):
5235
5191
async with new_worker (client , CurrentUpdateWorkflow ) as worker :
5236
5192
handle = await client .start_workflow (
5237
5193
CurrentUpdateWorkflow .run ,
@@ -5302,11 +5258,7 @@ async def my_signal_WARN_AND_ABANDON(self):
5302
5258
await self ._do_update_or_signal ()
5303
5259
5304
5260
5305
- async def test_unfinished_update_handler (client : Client , env : WorkflowEnvironment ):
5306
- if env .supports_time_skipping :
5307
- pytest .skip (
5308
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5309
- )
5261
+ async def test_unfinished_update_handler (client : Client ):
5310
5262
async with new_worker (client , UnfinishedHandlersWarningsWorkflow ) as worker :
5311
5263
test = _UnfinishedHandlersWarningsTest (client , worker , "update" )
5312
5264
await test .test_wait_all_handlers_finished_and_unfinished_handlers_warning ()
@@ -5543,7 +5495,6 @@ async def my_dynamic_signal(self, name: str, args: Sequence[RawValue]) -> None:
5543
5495
)
5544
5496
async def test_unfinished_handler_on_workflow_termination (
5545
5497
client : Client ,
5546
- env : WorkflowEnvironment ,
5547
5498
handler_type : Literal ["-signal-" , "-update-" ],
5548
5499
handler_registration : Literal ["-late-registered-" , "-not-late-registered-" ],
5549
5500
handler_dynamism : Literal ["-dynamic-" , "-not-dynamic-" ],
@@ -5554,10 +5505,6 @@ async def test_unfinished_handler_on_workflow_termination(
5554
5505
"-cancellation-" , "-failure-" , "-continue-as-new-"
5555
5506
],
5556
5507
):
5557
- if handler_type == "-update-" and env .supports_time_skipping :
5558
- pytest .skip (
5559
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5560
- )
5561
5508
await _UnfinishedHandlersOnWorkflowTerminationTest (
5562
5509
client ,
5563
5510
handler_type ,
@@ -5770,12 +5717,7 @@ async def my_update(self) -> str:
5770
5717
5771
5718
async def test_update_completion_is_honored_when_after_workflow_return_1 (
5772
5719
client : Client ,
5773
- env : WorkflowEnvironment ,
5774
5720
):
5775
- if env .supports_time_skipping :
5776
- pytest .skip (
5777
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5778
- )
5779
5721
update_id = "my-update"
5780
5722
task_queue = "tq"
5781
5723
wf_handle = await client .start_workflow (
@@ -5828,10 +5770,6 @@ async def test_update_completion_is_honored_when_after_workflow_return_2(
5828
5770
client : Client ,
5829
5771
env : WorkflowEnvironment ,
5830
5772
):
5831
- if env .supports_time_skipping :
5832
- pytest .skip (
5833
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5834
- )
5835
5773
async with Worker (
5836
5774
client ,
5837
5775
task_queue = "tq" ,
0 commit comments