Commit e2321a1
committed
Fix intermittent streaming response aggregation test failure
Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing
intermittently when run as part of a test suite due to empty streaming chunks
causing malformed JSON during aggregation.
Changes:
- Filter out empty/null text chunks before aggregation to prevent malformed JSON
- Replace silent return with explicit test failure when streaming aggregation
produces empty results
- Add debugging logs to aid troubleshooting of streaming response issues
The test now properly detects and reports streaming aggregation problems
instead of silently skipping, improving CI reliability and error detection.
Auto-cherry-pick to 1.0.x
Fixes #4134
Signed-off-by: Mark Pollack <[email protected]>1 parent ecc3317 commit e2321a1
File tree
1 file changed
+10
-0
lines changed- models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/client
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
241 | 251 | | |
242 | 252 | | |
243 | 253 | | |
| |||
0 commit comments