Skip to content

Commit

Permalink
Increase timeout for TestResourceManagerIsSafeForConcurrentAccessAndE…
Browse files Browse the repository at this point in the history
…numeration (#80330)

This raises the timeout to 30s, the same as what we have for the equivalent ResourceManager test (https://github.com/dotnet/runtime/blob/15fcb990fe17348ab6ddde0939200b900169920b/src/libraries/System.Resources.ResourceManager/tests/ResourceManagerTests.cs#L255).

fix #80277
  • Loading branch information
madelson authored and buyaa-n committed Jan 31, 2023
1 parent e88ea8d commit 1626ad8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ public static void TestResourceManagerIsSafeForConcurrentAccessAndEnumeration(bo
using Barrier barrier = new(Threads);
Task task = Task.WhenAll(Enumerable.Range(0, Threads).Select(_ => Task.Run(WaitForBarrierThenEnumerateResources)));

Assert.True(task.Wait(TimeSpan.FromSeconds(10)));
Assert.True(task.Wait(TimeSpan.FromSeconds(30)));

void WaitForBarrierThenEnumerateResources()
{
Expand Down

0 comments on commit 1626ad8

Please sign in to comment.