Skip to content

Commit 5328481

Browse files
dustinsoftwareDaniel15
authored andcommitted
Fix flakey tests (reactjs#475)
This is caused by ConfigureMockEnvironment setting up the static property Environment. Since tests run in parallel, there is a race between which tests that set up different fake environments, causing occasional failures. Disabling parallelization fixes the issue, and tests run so fast that this should be ok.
1 parent 4413448 commit 5328481

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Runtime.InteropServices;
3-
3+
using Xunit;
4+
45
[assembly: AssemblyTitle("React.Tests.Core")]
56
[assembly: AssemblyDescription("Unit tests for ReactJS.NET")]
67
[assembly: ComVisible(false)]
7-
[assembly: Guid("30a20b1c-18fd-4c3c-a18d-44875dba0c73")]
8+
[assembly: Guid("30a20b1c-18fd-4c3c-a18d-44875dba0c73")]
9+
[assembly: CollectionBehavior(DisableTestParallelization = true)]

0 commit comments

Comments
 (0)