Increase timeout for TestResourceManagerIsSafeForConcurrentAccessAndEnumeration ...
authormadelson <1269046+madelson@users.noreply.github.com>
Sat, 7 Jan 2023 20:10:22 +0000 (15:10 -0500)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 20:10:22 +0000 (15:10 -0500)
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

src/libraries/System.Resources.Extensions/tests/BinaryResourceWriterUnitTest.cs

index 48e9d83..21accbc 100644 (file)
@@ -528,7 +528,7 @@ namespace System.Resources.Extensions.Tests
             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()
             {