From e8610cb3dfe203b5603ae6d9b6b52f76bddc398d Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Sat, 16 Aug 2025 13:25:39 +0200 Subject: [PATCH] Throttle tests extra when running from the command line on Windows (both in CI and locally) --- test/TestBuildingBlocks/IntegrationTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TestBuildingBlocks/IntegrationTest.cs b/test/TestBuildingBlocks/IntegrationTest.cs index 0b94ac7448..b1d196cc6b 100644 --- a/test/TestBuildingBlocks/IntegrationTest.cs +++ b/test/TestBuildingBlocks/IntegrationTest.cs @@ -26,7 +26,7 @@ public abstract class IntegrationTest : IAsyncLifetime private static SemaphoreSlim GetDefaultThrottleSemaphore() { - int maxConcurrentTestRuns = OperatingSystem.IsWindows() && Environment.GetEnvironmentVariable("CI") != null ? 32 : 64; + int maxConcurrentTestRuns = OperatingSystem.IsWindows() && string.IsNullOrEmpty(Environment.GetEnvironmentVariable("VSAPPIDDIR")) ? 32 : 64; return new SemaphoreSlim(maxConcurrentTestRuns); }