Commit d00eb01
test(lsp): tolerate slow recovery cold-start in cancel-refresh test (#255)
`broker_cancels_partial_refresh_without_poisoning_warm_client` asserts
that aborting a partial refresh does not poison the broker: a subsequent
refresh must spin up a clean client. On a loaded macOS CI runner the
recovery client's `python3` cold-start intermittently exceeds the 3s
initialize floor, surfacing a transient "initialize timed out" — a slow
start, not a poisoned broker — which failed the test on two consecutive
unrelated PRs (#253, #254).
Retry the recovery refresh a bounded number of times (5, 50ms apart),
tolerating only the transient initialize-timeout error and still failing
fast on any other error. The Ready/total_errors assertions are unchanged.
Co-authored-by: Claude <noreply@anthropic.com>1 parent bc63387 commit d00eb01
1 file changed
Lines changed: 31 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
608 | 632 | | |
609 | 633 | | |
610 | 634 | | |
| |||
0 commit comments