Skip to content

fix: Update google genai streaming test#2630

Merged
vblagoje merged 2 commits into
mainfrom
fix_google_gen_ai_streaming_test
Dec 29, 2025
Merged

fix: Update google genai streaming test#2630
vblagoje merged 2 commits into
mainfrom
fix_google_gen_ai_streaming_test

Conversation

@vblagoje
Copy link
Copy Markdown
Member

@vblagoje vblagoje commented Dec 29, 2025

Why:

Fixes test failure caused by Haystack core PR 10248 which added reasoning content accumulation to streaming chunks.

What:

Added reasoning attribute to mock StreamingChunk objects in test_aggregate_streaming_chunks_with_reasoning.

How can it be used:

Test now properly mocks chunks with reasoning=None or reasoning=ReasoningContent(reasoning_text="...") matching the new Haystack core API.

How did you test it:

Verified test_aggregate_streaming_chunks_with_reasoning passes, no regressions.

Notes for the reviewer:

Mock objects now simulate the reasoning attribute expected by _convert_streaming_chunks_to_chat_message() after the above-mentioned Haystack PR.

@github-actions github-actions Bot added integration:google-genai type:documentation Improvements or additions to documentation labels Dec 29, 2025
@vblagoje vblagoje marked this pull request as ready for review December 29, 2025 09:12
@vblagoje vblagoje requested a review from a team as a code owner December 29, 2025 09:12
@vblagoje vblagoje requested review from sjrl and removed request for a team December 29, 2025 09:12
@vblagoje vblagoje merged commit 618de89 into main Dec 29, 2025
15 of 16 checks passed
@vblagoje vblagoje deleted the fix_google_gen_ai_streaming_test branch December 29, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration:google-genai type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants