Commit a8c47b3
committed
jobs: fix TestJitterCalculation failed
This test will sometimes fail due to a randomly picking a value that
rounds to 1/2. The frequency of this is a bit higher than one would
expect because the rounding behavior depends on the width of the
duration, not the width of a float64. The test was adjusted to retry
if the jittered value equals the input.
Release note: none
Fixes: #128381
Fixes: #1571131 parent 2ec926e commit a8c47b3
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1230 | 1241 | | |
1231 | 1242 | | |
1232 | 1243 | | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | 1244 | | |
1237 | 1245 | | |
1238 | 1246 | | |
| |||
0 commit comments