Skip to content

Commit 1ea5fa5

Browse files
committed
Fix unit tests
Change-Id: Ic6e25fc3c931b69d4606ef80f9517a9a1c7c089c Co-developed-by: Cursor <noreply@cursor.com>
1 parent 93a9960 commit 1ea5fa5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

instrumentation-loongsuite/loongsuite-instrumentation-google-adk/tests/test_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ async def test_llm_metrics_with_error(self):
358358
mock_llm_request = Mock()
359359
mock_llm_request.model = "gemini-pro"
360360
mock_llm_request.config = Mock()
361+
mock_llm_request.contents = None
361362

362363
mock_callback_context = create_mock_callback_context()
363364

instrumentation-loongsuite/loongsuite-instrumentation-google-adk/tests/test_plugin_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ async def test_error_handling_attributes(self):
502502
mock_llm_request = Mock()
503503
mock_llm_request.model = "gemini-pro"
504504
mock_llm_request.config = Mock()
505+
mock_llm_request.contents = None
505506

506507
mock_callback_context = create_mock_callback_context(
507508
"session_err", "user_err"

0 commit comments

Comments
 (0)