Skip to content

Commit 08ebf4c

Browse files
committed
Update Duration API to use from_seconds() builder method
- Change Duration.seconds(5) to Duration.from_seconds(5) - Aligns with Duration refactoring in main SDK
1 parent 74a4bf2 commit 08ebf4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/basic_success_path_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
from typing import Any
55

6+
from aws_durable_execution_sdk_python.config import Duration
67
from aws_durable_execution_sdk_python.context import (
78
DurableContext,
89
durable_step,
@@ -58,7 +59,7 @@ def function_under_test(event: Any, context: DurableContext) -> list[str]:
5859
result_one: str = context.step(one(1, 2))
5960
results.append(result_one)
6061

61-
context.wait(seconds=1)
62+
context.wait(duration=Duration.from_seconds(5))
6263

6364
result_two: str = context.run_in_child_context(two(3, 4))
6465
results.append(result_two)

0 commit comments

Comments
 (0)