Commit 4751283
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 33ebee8 commit 4751283
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
714 | 721 | | |
715 | 722 | | |
716 | 723 | | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | 724 | | |
721 | 725 | | |
722 | 726 | | |
| |||
0 commit comments