Commit e9641de
committed
Fix flaky progress elapsed time test
Use a fixed base value (100.0) instead of the real monotonic clock
when stubbing Process.clock_gettime. With large clock values on
long-running CI machines, float-precision errors in (now + 65.0) - now
can produce a result slightly above 65.0, and .ceil rounds it to 66,
causing "1m 6s" instead of the expected "1m 5s".1 parent aacc7ec commit e9641de
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
0 commit comments