Repository navigation
Commit fe33d69
Fix Futex test timeouts - use 10ms instead of 10ns
All Futex tests were using timeout values of 10 (nanoseconds) which was
far too short. The wakerFunc yields 10 times before waking, and each
yield takes much longer than 1ns, causing timeouts to fire before the
wake happens. This resulted in waiters being canceled by timeout instead
of being properly woken.
Changed all test timeouts to 10ms (10 * std.time.ns_per_ms) to give
adequate time for the wake operations to complete.
Also fixed one test to properly propagate errors instead of silently
catching them.
Co-authored-by: Lukáš Lalinský <[email protected]>1 parent 18486c7 commit fe33d69
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
0 commit comments