Repository navigation
Commit 6216f63
committed
fix(tests): Fix flaky test_ttl_jitter random collision
The test asserted two random TTL values were different, but with only
1801 possible integer values there was a ~1/1801 chance of collision
per test run. Fix by sampling 20 values and asserting we get more than
one distinct value.
Fixes #1089521 parent 9b71753 commit 6216f63
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
0 commit comments