File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,16 @@ namespace TestBuildingBlocks;
1212/// </summary>
1313public abstract class IntegrationTest : IAsyncLifetime
1414{
15- private static readonly SemaphoreSlim ThrottleSemaphore = new ( 64 ) ;
15+ private static readonly SemaphoreSlim ThrottleSemaphore ;
1616
1717 protected abstract JsonSerializerOptions SerializerOptions { get ; }
1818
19+ static IntegrationTest ( )
20+ {
21+ int maxConcurrentTestRuns = Environment . GetEnvironmentVariable ( "APPVEYOR" ) != null ? 32 : 64 ;
22+ ThrottleSemaphore = new SemaphoreSlim ( maxConcurrentTestRuns ) ;
23+ }
24+
1925 public async Task < ( HttpResponseMessage httpResponse , TResponseDocument responseDocument ) > ExecuteHeadAsync < TResponseDocument > ( string requestUrl ,
2026 Action < HttpRequestHeaders > ? setRequestHeaders = null )
2127 {
You can’t perform that action at this time.
0 commit comments