Repository navigation
Commit 2d20c79
committed
TST: take the wall clock out of the shared-deadline test
This branch's CI went red on windows-latest 3.10 with
assert min(offered) < 0.05
E assert 0.0500000000001819 < 0.05
The test is on develop rather than in this branch, and it is mine, from
#1182. The stand-in workers return at once, so nothing makes the clock move
between _wait_for_the_workers setting its deadline and reading it back for
the last of them, and (t + 0.05) - t is not exactly 0.05 in binary. Every
other leg passed, and so did the same job on 3.14.
The clock is a counter now, so what each worker is offered is decided by
arithmetic rather than by how coarse the platform's timer is. The shape the
test is about is asserted as well: inside one stage the offers shrink along
the fleet, where one deadline each would hand every worker the whole grace.
Giving each worker its own grace turns both assertions red and leaves the
other twelve in the file green.
It sits here because it blocks this pull request's CI, and it is a test-only
change to a file this branch does not otherwise touch. Happy to move it to
its own pull request if you would rather keep the two apart.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent 3948163 commit 2d20c79
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
177 | 185 | | |
178 | 186 | | |
179 | 187 | | |
| |||
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
0 commit comments