Repository navigation
Commit 6716b4e
committed
Leader-schedule test helpers no longer depend on where the local node's key sorts
Test-only. The test configuration's node key is derived from the instance
number and the day's seed. For a key that sorts behind nearly every other one
the helpers could not find a peer that comes after it within their tries
(PendingEnvelopes tests: 'could not pick a peer that does not lead round 1';
seen with seed 20769 at base instance 1450, and on the base branch with seed
20768 at 850). createAppWithFollowerPeer now also varies the local key;
selectLocalFirstLeader tries more absent peers.1 parent 90bc094 commit 6716b4e
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5521 | 5521 | | |
5522 | 5522 | | |
5523 | 5523 | | |
5524 | | - | |
| 5524 | + | |
| 5525 | + | |
| 5526 | + | |
| 5527 | + | |
| 5528 | + | |
5525 | 5529 | | |
5526 | 5530 | | |
5527 | 5531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
126 | 143 | | |
127 | 144 | | |
128 | 145 | | |
| |||
0 commit comments