Skip to content

Commit c46918d

Browse files
committed
Add test assertion, fill in fake info
1 parent b2fba25 commit c46918d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

temporalio/worker/workflow_sandbox/_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
continued_run_id=None,
3434
cron_schedule=None,
3535
execution_timeout=None,
36+
first_execution_run_id="sandbox-validate-first-run_id",
3637
headers={},
3738
namespace="sandbox-validate-namespace",
3839
parent=None,

tests/worker/test_workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,7 @@ async def run(self, past_run_ids: List[str]) -> List[str]:
16451645
info = workflow.info()
16461646
if info.continued_run_id:
16471647
past_run_ids.append(info.continued_run_id)
1648+
assert info.first_execution_run_id == past_run_ids[0]
16481649
workflow.continue_as_new(
16491650
past_run_ids,
16501651
# Add memo and retry policy to check

0 commit comments

Comments
 (0)