Commit 8e691ff
committed
test: harden the finalizer-wait regression guard's timing check
start was captured after the goroutine that fires the second delete
was already launched, so elapsed could in principle dip marginally
under holdFinalizer if the goroutine's 200ms sleep began before start
was assigned. Move the capture before the go statement.
Also note in a comment that deleteCalls reaching 2 alone doesn't prove
cleanup blocked. The goroutine fires that second delete
unconditionally regardless of what cleanupNCCLResources does. The
elapsed-time assertion right after it is the real guard.
Signed-off-by: Mike Cook <micook@nvidia.com>1 parent 3241a05 commit 8e691ff
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
219 | | - | |
220 | 223 | | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
225 | 234 | | |
226 | 235 | | |
227 | 236 | | |
| |||
0 commit comments