Commit edc976e
Fix flaky TestResourceManagerIsSafeForConcurrentAccessAndEnumeration timeout
The test uses Task.WaitAll with a 30-second timeout to wait for 10
threads concurrently enumerating resources. On loaded CI agents, 30s
is not always enough, causing Assert.True(false) with no useful
diagnostic.
Switch to await Task.WhenAll().WaitAsync(120s):
- WhenAll propagates actual thread-safety exceptions instead of
swallowing them behind Assert.True(false)
- 120s gives 4x more headroom for slow CI agents while still
providing a timeout safety net
This test has been filed as a Known Build Error three times (#80277,
#86013, #125448) across 3+ years.
Fixes #125448
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0d0e129 commit edc976e
1 file changed
Lines changed: 5 additions & 2 deletions
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
538 | 541 | | |
539 | 542 | | |
540 | 543 | | |
| |||
0 commit comments