Commit 75c3e8d
Fix flaky test_a2a_error_handling test
The test was using a fixed 0.1-second sleep and assuming the task would
fail within that time. In slower CI environments or under Python 3.10,
this timing assumption could fail.
Changed to use the same retry loop pattern used by all other a2a tests:
- Poll the task status up to 50 times (5 seconds total)
- Break early when the task reaches 'failed' state
- Raise clear error if timeout is reached
This matches the pattern established in previous commits (a253fad, etc.)
that fixed similar flakiness in other a2a tests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent e640bda commit 75c3e8d
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
519 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
520 | 526 | | |
521 | 527 | | |
522 | 528 | | |
| |||
0 commit comments