Commit d1ae102
committed
Fix test_idle_heartbeat: wait for all shard connections before testing
wait_for_all_pools only waits for the first connection per host. Shard-
aware connections to remaining shards are opened asynchronously in the
background. When these background connections complete during the test's
sleep interval, they replace existing connections causing KeyError (old
connection ID not in snapshot) or stale idle state assertions.
Add a helper that polls until all shard connections are established,
then call it after connect(). This stabilizes the connection set before
snapshotting request IDs, eliminating both failure modes and allowing
the original stronger assertions to be restored.1 parent 929fd31 commit d1ae102
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
728 | 745 | | |
729 | 746 | | |
730 | 747 | | |
731 | 748 | | |
732 | 749 | | |
733 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
734 | 756 | | |
735 | 757 | | |
736 | 758 | | |
| |||
746 | 768 | | |
747 | 769 | | |
748 | 770 | | |
749 | | - | |
750 | | - | |
| 771 | + | |
751 | 772 | | |
752 | | - | |
753 | | - | |
754 | 773 | | |
755 | 774 | | |
756 | 775 | | |
| |||
0 commit comments