Skip to content

Commit

Permalink
Fix HedgingActionGenerator_EnsureDefaults
Browse files Browse the repository at this point in the history
Fix test broken by changes to xunit's parallelism algorithm.
See xunit/xunit#3024.
  • Loading branch information
martincostello committed Sep 16, 2024
1 parent 656f4b0 commit 35967a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Polly.Core.Tests/Polly.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@
<Using Include="Polly.Core.Tests.Helpers" />
<Using Include="Polly.TestUtils" />
</ItemGroup>

<!-- Workaround for xunit 2.8.0+ change. See https://github.com/xunit/xunit/discussions/3024. -->
<ItemGroup>
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions test/Polly.Core.Tests/xunit.runner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
"parallelAlgorithm": "aggressive"
}

0 comments on commit 35967a3

Please sign in to comment.