Skip to content

Commit a5392c7

Browse files
committed
unit test fix
Change-Id: I7cec0b4daf25f5aeef09576c6a469a15f207429e
1 parent bf5a97b commit a5392c7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/unittests/telemetry/test_functional.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def wrapped_firstiter(coro):
114114
# workflow/) but are workflow-internal node functions.
115115
# - _run_node_async, _consume_event_queue: live in runners.py
116116
# but are part of the new workflow node runtime path.
117+
# - start_as_current_node_span: @asynccontextmanager in
118+
# telemetry/node_tracing.py; cleanup is handled by
119+
# __aexit__, not Aclosing.
117120
if coro.__name__ in (
118121
'use_inference_span',
119122
'_use_native_generate_content_span',
@@ -123,6 +126,7 @@ def wrapped_firstiter(coro):
123126
'run_node_impl',
124127
'call_llm',
125128
'execute_tools',
129+
'start_as_current_node_span',
126130
):
127131
firstiter(coro)
128132
return
@@ -151,6 +155,7 @@ def wrapped_firstiter(coro):
151155
'generate_content mock',
152156
'generate_content mock',
153157
'invoke_agent some_root_agent',
158+
'invoke_node some_root_agent',
154159
]
155160

156161

0 commit comments

Comments
 (0)