From a1f6dbe63d261236dead3594a838677337065b9b Mon Sep 17 00:00:00 2001 From: sdk-sentinel-bot Date: Tue, 1 Sep 2026 01:16:40 +0000 Subject: [PATCH] Wait for triggered schedule action visibility --- tests/test_client.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index 15324cf78..56e81dabd 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1139,8 +1139,14 @@ async def test_schedule_trigger_immediately( # Confirm workflow result desc = await handle.describe() - assert desc.info.num_actions == 1 - action_exec = (await handle.describe()).info.recent_actions[0].action + + async def update_desc_get_action_count() -> int: + nonlocal desc + desc = await handle.describe() + return desc.info.num_actions + + await assert_eq_eventually(1, update_desc_get_action_count) + action_exec = desc.info.recent_actions[0].action assert isinstance(action_exec, ScheduleActionExecutionStartWorkflow) assert ( "some result"