Skip to content

Commit

Permalink
Fix flakey tests (#475)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dustinsoftware authored and Daniel15 committed Nov 13, 2017
1 parent 4413448 commit 5328481
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/React.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.InteropServices;

using Xunit;

[assembly: AssemblyTitle("React.Tests.Core")]
[assembly: AssemblyDescription("Unit tests for ReactJS.NET")]
[assembly: ComVisible(false)]
[assembly: Guid("30a20b1c-18fd-4c3c-a18d-44875dba0c73")]
[assembly: Guid("30a20b1c-18fd-4c3c-a18d-44875dba0c73")]
[assembly: CollectionBehavior(DisableTestParallelization = true)]

0 comments on commit 5328481

Please sign in to comment.