Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e8610cb

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

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)

AltStyle によって変換されたページ (->オリジナル) /