We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98845c6 commit f45d1beCopy full SHA for f45d1be
tests/nexus/test_workflow_caller_cancellation_types.py
@@ -242,10 +242,10 @@ async def _get_event_time(
242
wf_handle: WorkflowHandle,
243
event_type: EventType.ValueType,
244
) -> datetime:
245
- event = await anext(
246
- e async for e in wf_handle.fetch_history_events() if e.event_type == event_type
247
- )
248
- return event.event_time.ToDatetime().replace(tzinfo=timezone.utc)
+ async for event in wf_handle.fetch_history_events():
+ if event.event_type == event_type:
+ return event.event_time.ToDatetime().replace(tzinfo=timezone.utc)
+ assert False, f"Event {event_type} not found in {wf_handle.id}"
249
250
251
async def _assert_event_subsequence(
0 commit comments