Skip to content

Commit

Permalink
Enabling multiple threads for testing (#522)
Browse files Browse the repository at this point in the history
* Enabling multiple threads for testing

* Removing collection tag
  • Loading branch information
eddynaka committed Aug 2, 2021
1 parent f4bf0fa commit 7b09519
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Microsoft.CodeAnalysis.Sarif.PatternMatcher.Plugins.Security.Validators
{
[Collection("MockHttpTests")]
public class HttpAuthorizationRequestHeaderValidatorTests
{
private const string TestScheme = "http";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

namespace Microsoft.CodeAnalysis.Sarif.PatternMatcher.Plugins.Security.Validators
{
[Collection("MockHttpTests")]
public class GitHubAppCredentialsValidatorTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

namespace Microsoft.CodeAnalysis.Sarif.PatternMatcher.Plugins.Security.Validators
{
[Collection("MockHttpTests")]
public class SquarePatValidatorTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

namespace Microsoft.CodeAnalysis.Sarif.PatternMatcher.Plugins.Security.Validators
{
[Collection("MockHttpTests")]
public class SquareCredentialsValidatorTests
{
[Fact]
Expand Down
4 changes: 1 addition & 3 deletions Src/Plugins/Tests.Security/xunit.runner.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
"maxParallelThreads": 1,
"parallelizeTestCollections": false
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json"
}
2 changes: 1 addition & 1 deletion Src/SarifPatternMatcher.runsettings
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<RunConfiguration>
<MaxCpuCount>1</MaxCpuCount>
<!--<MaxCpuCount>1</MaxCpuCount>-->
<ResultsDirectory>..\bld\TestResults</ResultsDirectory>
</RunConfiguration>
<DataCollectionRunSettings>
Expand Down

0 comments on commit 7b09519

Please sign in to comment.