Skip to content

Commit 52c7545

Browse files
committed
Skip on time skipping
1 parent afdb757 commit 52c7545

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/worker/test_activity.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,12 @@ async def h():
14911491
assert result.result == "details: Some detail"
14921492

14931493

1494-
async def test_activity_reset_catch(client: Client, worker: ExternalWorker):
1494+
async def test_activity_reset_catch(
1495+
client: Client, worker: ExternalWorker, env: WorkflowEnvironment
1496+
):
1497+
if env.supports_time_skipping:
1498+
pytest.skip("Time skipping server doesn't support activity reset")
1499+
14951500
@activity.defn
14961501
async def wait_cancel() -> str:
14971502
req = temporalio.api.workflowservice.v1.ResetActivityRequest(
@@ -1553,7 +1558,12 @@ def sync_wait_cancel() -> str:
15531558
assert result.result == "Got cancelled error, reset? True"
15541559

15551560

1556-
async def test_activity_reset_history(client: Client, worker: ExternalWorker):
1561+
async def test_activity_reset_history(
1562+
client: Client, worker: ExternalWorker, env: WorkflowEnvironment
1563+
):
1564+
if env.supports_time_skipping:
1565+
pytest.skip("Time skipping server doesn't support activity reset")
1566+
15571567
@activity.defn
15581568
async def wait_cancel() -> str:
15591569
req = temporalio.api.workflowservice.v1.ResetActivityRequest(

0 commit comments

Comments
 (0)