Skip to content

Commit

Permalink
Fix IntegrationTest filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Jun 19, 2024
1 parent 2b51d3e commit b64a659
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/Tests.Infrastructure/SideEffectTestCaseOrderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ public IEnumerable<TTestCase> OrderTestCases<TTestCase>(IEnumerable<TTestCase> t
.Where(testCase =>
{
if (testCase.Traits.TryGetValue("Category", out var categories) && categories.Contains("IntegrationTest"))
{
if (testCase.Traits.TryGetValue("ValidPlatform", out var validPlatforms) && validPlatforms.Count > 0)
return validPlatforms.Any(validPlatform => OperatingSystem.IsOSPlatform(validPlatform));
}
return testCase.Traits.TryGetValue("ValidPlatform", out var validPlatforms) && validPlatforms.Any(validPlatform => OperatingSystem.IsOSPlatform(validPlatform));

return true;
})
Expand Down

0 comments on commit b64a659

Please sign in to comment.