13 references to PlatformDetection
Aspire.Playground.Tests (13)
tests\Aspire.TestUtilities\RequiresFeatureAttribute.cs (8)
34
return OperatingSystem.IsLinux() || !
PlatformDetection
.IsRunningOnCI;
62
return !
PlatformDetection
.IsRunningOnCI // Supported on local runs
64
||
PlatformDetection
.IsRunningOnGithubActions;
103
if (
PlatformDetection
.IsRunningOnCI)
115
if (
PlatformDetection
.IsRunningOnCI)
139
if (
PlatformDetection
.IsRunningOnCI)
155
if (
PlatformDetection
.IsRunningOnCI)
161
return !
PlatformDetection
.IsRunningFromAzdo;
tests\Shared\AsyncTestHelpers.cs (5)
21
public static readonly int DefaultTimeoutDuration = 5 * 1000 * (
PlatformDetection
.IsRunningOnCI ? 6 : 1); // 5 sec, 30 sec in CI
22
public static readonly int LongTimeoutDuration = 60 * 1000 * (
PlatformDetection
.IsRunningOnCI ? 3 : 1); // 60 sec, 180 sec in CI
23
public static readonly int ExtraLongTimeoutDuration = 60 * 1000 * 3 * (
PlatformDetection
.IsRunningOnCI ? 2 : 1); // 180 sec, 360 sec in CI -- useful when a docker image might need pulling
24
public static readonly int DefaultOrchestratorTestTimeout = 15 * 1000 * (
PlatformDetection
.IsRunningOnCI ? 2 : 1); // 15 sec, 30 sec in CI
25
public static readonly int DefaultOrchestratorTestLongTimeout = 45 * 1000 * (
PlatformDetection
.IsRunningOnCI ? 4 : 1); // 45 sec, 180 sec in CI