Skip to content

Commit e86926d

Browse files
committed
fix leaky test
1 parent 7175e89 commit e86926d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

util/opentelemetry-util-genai/tests/test_handler_metrics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ def test_start_tool_call_creates_span(self):
230230
# Check kind is INTERNAL (value 1)
231231
self.assertEqual(tool.span.kind, SpanKind.INTERNAL)
232232

233+
# Clean up: stop the tool call to detach context
234+
self.handler.stop(tool)
235+
233236
def test_stop_tool_call_ends_span(self):
234237
"""Test stop ends span successfully for ToolCall"""
235238
tool = ToolCall(

0 commit comments

Comments
 (0)