Commit 14bb29c
committed
Fix flaky concurrency controls test
Replace fixed sleeps with deterministic waits in the
"don't block claimed executions that get released" test.
The test was using sleep(0.2) to wait for claiming and
sleep(shutdown_timeout + 0.6) to wait for shutdown, both of
which are timing sensitive and unreliable on slow CI. Instead,
use wait_for to wait for the job to be claimed, and
terminate_process to wait for the supervisor to actually exit.1 parent 176721e commit 14bb29c
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
| 169 | + | |
171 | 170 | | |
172 | | - | |
173 | | - | |
174 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
0 commit comments