@@ -1494,7 +1494,7 @@ async def test_workflow_with_codec(client: Client, env: WorkflowEnvironment):
1494
1494
await test_workflow_signal_and_query (client )
1495
1495
await test_workflow_signal_and_query_errors (client )
1496
1496
await test_workflow_simple_activity (client )
1497
- await test_workflow_update_handlers_happy (client , env )
1497
+ await test_workflow_update_handlers_happy (client )
1498
1498
1499
1499
1500
1500
class PassThroughCodec (PayloadCodec ):
@@ -4270,11 +4270,7 @@ def throws_runtime_err(self) -> None:
4270
4270
raise RuntimeError ("intentional failure" )
4271
4271
4272
4272
4273
- async def test_workflow_update_handlers_happy (client : Client , env : WorkflowEnvironment ):
4274
- if env .supports_time_skipping :
4275
- pytest .skip (
4276
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4277
- )
4273
+ async def test_workflow_update_handlers_happy (client : Client ):
4278
4274
async with new_worker (
4279
4275
client , UpdateHandlersWorkflow , activities = [say_hello ]
4280
4276
) as worker :
@@ -4316,13 +4312,7 @@ async def test_workflow_update_handlers_happy(client: Client, env: WorkflowEnvir
4316
4312
)
4317
4313
4318
4314
4319
- async def test_workflow_update_handlers_unhappy (
4320
- client : Client , env : WorkflowEnvironment
4321
- ):
4322
- if env .supports_time_skipping :
4323
- pytest .skip (
4324
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4325
- )
4315
+ async def test_workflow_update_handlers_unhappy (client : Client ):
4326
4316
async with new_worker (client , UpdateHandlersWorkflow ) as worker :
4327
4317
handle = await client .start_workflow (
4328
4318
UpdateHandlersWorkflow .run ,
@@ -4395,11 +4385,7 @@ async def test_workflow_update_handlers_unhappy(
4395
4385
assert "Rejected" == err .value .cause .message
4396
4386
4397
4387
4398
- async def test_workflow_update_task_fails (client : Client , env : WorkflowEnvironment ):
4399
- if env .supports_time_skipping :
4400
- pytest .skip (
4401
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4402
- )
4388
+ async def test_workflow_update_task_fails (client : Client ):
4403
4389
# Need to not sandbox so behavior can change based on globals
4404
4390
async with new_worker (
4405
4391
client , UpdateHandlersWorkflow , workflow_runner = UnsandboxedWorkflowRunner ()
@@ -4444,13 +4430,7 @@ def got_update(self) -> str:
4444
4430
return self ._got_update
4445
4431
4446
4432
4447
- async def test_workflow_update_before_worker_start (
4448
- client : Client , env : WorkflowEnvironment
4449
- ):
4450
- if env .supports_time_skipping :
4451
- pytest .skip (
4452
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4453
- )
4433
+ async def test_workflow_update_before_worker_start (client : Client ):
4454
4434
# In order to confirm that all started workflows get updates before the
4455
4435
# workflow completes, this test will start a workflow and start an update.
4456
4436
# Only then will it start the worker to process both in the task. The
@@ -4518,13 +4498,7 @@ async def signal(self) -> None:
4518
4498
self ._complete_update = True
4519
4499
4520
4500
4521
- async def test_workflow_update_separate_handle (
4522
- client : Client , env : WorkflowEnvironment
4523
- ):
4524
- if env .supports_time_skipping :
4525
- pytest .skip (
4526
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4527
- )
4501
+ async def test_workflow_update_separate_handle (client : Client ):
4528
4502
async with new_worker (client , UpdateSeparateHandleWorkflow ) as worker :
4529
4503
# Start the workflow
4530
4504
handle = await client .start_workflow (
@@ -4564,14 +4538,7 @@ async def do_update(self, sleep: float) -> None:
4564
4538
await asyncio .sleep (sleep )
4565
4539
4566
4540
4567
- async def test_workflow_update_timeout_or_cancel (
4568
- client : Client , env : WorkflowEnvironment
4569
- ):
4570
- if env .supports_time_skipping :
4571
- pytest .skip (
4572
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4573
- )
4574
-
4541
+ async def test_workflow_update_timeout_or_cancel (client : Client ):
4575
4542
# Confirm start timeout via short timeout on update w/ no worker running
4576
4543
handle = await client .start_workflow (
4577
4544
UpdateTimeoutOrCancelWorkflow .run ,
@@ -4861,14 +4828,7 @@ async def run(self, scenario: FailureTypesScenario) -> None:
4861
4828
await super ().run (scenario )
4862
4829
4863
4830
4864
- async def test_workflow_failure_types_configured (
4865
- client : Client , env : WorkflowEnvironment
4866
- ):
4867
- if env .supports_time_skipping :
4868
- pytest .skip (
4869
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4870
- )
4871
-
4831
+ async def test_workflow_failure_types_configured (client : Client ):
4872
4832
# Asserter for a single scenario
4873
4833
async def assert_scenario (
4874
4834
workflow : Type [FailureTypesWorkflowBase ],
@@ -5252,11 +5212,7 @@ async def get_update_id(self) -> str:
5252
5212
return info .id
5253
5213
5254
5214
5255
- async def test_workflow_current_update (client : Client , env : WorkflowEnvironment ):
5256
- if env .supports_time_skipping :
5257
- pytest .skip (
5258
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5259
- )
5215
+ async def test_workflow_current_update (client : Client ):
5260
5216
async with new_worker (client , CurrentUpdateWorkflow ) as worker :
5261
5217
handle = await client .start_workflow (
5262
5218
CurrentUpdateWorkflow .run ,
@@ -5327,11 +5283,7 @@ async def my_signal_WARN_AND_ABANDON(self):
5327
5283
await self ._do_update_or_signal ()
5328
5284
5329
5285
5330
- async def test_unfinished_update_handler (client : Client , env : WorkflowEnvironment ):
5331
- if env .supports_time_skipping :
5332
- pytest .skip (
5333
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5334
- )
5286
+ async def test_unfinished_update_handler (client : Client ):
5335
5287
async with new_worker (client , UnfinishedHandlersWarningsWorkflow ) as worker :
5336
5288
test = _UnfinishedHandlersWarningsTest (client , worker , "update" )
5337
5289
await test .test_wait_all_handlers_finished_and_unfinished_handlers_warning ()
@@ -5568,7 +5520,6 @@ async def my_dynamic_signal(self, name: str, args: Sequence[RawValue]) -> None:
5568
5520
)
5569
5521
async def test_unfinished_handler_on_workflow_termination (
5570
5522
client : Client ,
5571
- env : WorkflowEnvironment ,
5572
5523
handler_type : Literal ["-signal-" , "-update-" ],
5573
5524
handler_registration : Literal ["-late-registered-" , "-not-late-registered-" ],
5574
5525
handler_dynamism : Literal ["-dynamic-" , "-not-dynamic-" ],
@@ -5579,10 +5530,6 @@ async def test_unfinished_handler_on_workflow_termination(
5579
5530
"-cancellation-" , "-failure-" , "-continue-as-new-"
5580
5531
],
5581
5532
):
5582
- if handler_type == "-update-" and env .supports_time_skipping :
5583
- pytest .skip (
5584
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5585
- )
5586
5533
await _UnfinishedHandlersOnWorkflowTerminationTest (
5587
5534
client ,
5588
5535
handler_type ,
@@ -5795,12 +5742,7 @@ async def my_update(self) -> str:
5795
5742
5796
5743
async def test_update_completion_is_honored_when_after_workflow_return_1 (
5797
5744
client : Client ,
5798
- env : WorkflowEnvironment ,
5799
5745
):
5800
- if env .supports_time_skipping :
5801
- pytest .skip (
5802
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5803
- )
5804
5746
update_id = "my-update"
5805
5747
task_queue = "tq"
5806
5748
wf_handle = await client .start_workflow (
@@ -5853,10 +5795,6 @@ async def test_update_completion_is_honored_when_after_workflow_return_2(
5853
5795
client : Client ,
5854
5796
env : WorkflowEnvironment ,
5855
5797
):
5856
- if env .supports_time_skipping :
5857
- pytest .skip (
5858
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5859
- )
5860
5798
async with Worker (
5861
5799
client ,
5862
5800
task_queue = "tq" ,
0 commit comments