Skip to content

Commit fc7c615

Browse files
authored
Throttle tests extra when running from the command line on Windows (both in CI and locally) (#1765)
1 parent 43550ca commit fc7c615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/TestBuildingBlocks/IntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public abstract class IntegrationTest : IAsyncLifetime
2626

2727
private static SemaphoreSlim GetDefaultThrottleSemaphore()
2828
{
29-
int maxConcurrentTestRuns = OperatingSystem.IsWindows() && Environment.GetEnvironmentVariable("CI") != null ? 32 : 64;
29+
int maxConcurrentTestRuns = OperatingSystem.IsWindows() && string.IsNullOrEmpty(Environment.GetEnvironmentVariable("VSAPPIDDIR")) ? 32 : 64;
3030
return new SemaphoreSlim(maxConcurrentTestRuns);
3131
}
3232

0 commit comments

Comments
 (0)