Commit 45fd716
Simplify integration test to use IOError instead of mocking HTTPx errors
Instead of trying to create complex mock HTTPX::ErrorResponse and
HTTPX::HTTPError objects (which require many internal stubs), simply
raise an IOError to simulate a connection failure.
StreamRequest catches any error during streaming and retries, so the
specific error type doesn't matter for testing the retry behavior.
This approach is much simpler and more maintainable.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent eed296c commit 45fd716
1 file changed
+3
-19
lines changedLines changed: 3 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
267 | 251 | | |
268 | 252 | | |
269 | 253 | | |
| |||
0 commit comments