29 references to TestConstants
Aspire.Cli.Tests (29)
Agents\TelemetryHookScriptTests.cs (2)
668
timeout.CancelAfter(
TestConstants
.DefaultTimeoutTimeSpan);
693
throw new TimeoutException($"Hook process '{fileName}' did not complete input, output, and exit within {
TestConstants
.DefaultTimeoutTimeSpan}.", ex);
Commands\NewCommandTests.cs (1)
620
var exitCode = await result.InvokeAsync().DefaultTimeout(
TestConstants
.LongTimeoutDuration);
Commands\RunCommandTests.cs (6)
2908
var exitCode = await result.InvokeAsync().DefaultTimeout(
TestConstants
.LongTimeoutDuration);
2956
var exitCode = await result.InvokeAsync().DefaultTimeout(
TestConstants
.LongTimeoutDuration);
2999
var exitCode = await result.InvokeAsync().DefaultTimeout(
TestConstants
.LongTimeoutDuration);
3050
var exitCode = await result.InvokeAsync().DefaultTimeout(
TestConstants
.LongTimeoutDuration);
3107
var exitCode = await pendingRun.DefaultTimeout(
TestConstants
.LongTimeoutDuration);
3218
var exitCode = await pendingRun.DefaultTimeout(
TestConstants
.LongTimeoutDuration);
Commands\SdkDumpCommandTests.cs (1)
329
exitCode = await Program.Main(["sdk", "dump", "--format", "ci", "--output", outputPath, projectPath]).DefaultTimeout(
TestConstants
.ExtraLongTimeoutTimeSpan);
DotNet\ProcessExecutionTests.cs (4)
85
Assert.True(WaitForProcessExit(execution.ProcessId,
TestConstants
.DefaultTimeoutTimeSpan), $"Expected process {execution.ProcessId} to exit after graceful signal.");
132
Assert.True(WaitForProcessExit(execution.ProcessId,
TestConstants
.DefaultTimeoutTimeSpan), $"Expected process {execution.ProcessId} to be killed after graceful expiration.");
160
Assert.True(WaitForProcessExit(execution.ProcessId,
TestConstants
.DefaultTimeoutTimeSpan), $"Expected process {execution.ProcessId} to be killed after signaler failure.");
285
using var timeout = new CancellationTokenSource(
TestConstants
.LongTimeoutTimeSpan);
Npm\AspireJsLauncherTests.cs (1)
381
using var timeout = AsyncTestHelpers.CreateDefaultTimeoutTokenSource(
TestConstants
.LongTimeoutDuration);
Projects\ProcessGuestLauncherTests.cs (1)
365
var deadline = DateTime.UtcNow +
TestConstants
.LongTimeoutTimeSpan;
Telemetry\AgentTelemetryPersistenceTests.cs (2)
125
Assert.True(await provider.ForceFlushAsync(
TestConstants
.DefaultTimeoutDuration).DefaultTimeout());
129
}, workspace.WorkspaceRoot.FullName, new RemoteInvokeOptions { TimeOut =
TestConstants
.LongTimeoutDuration });
tests\Shared\AsyncTestHelpers.cs (7)
50
var effectiveTimeout = timeout ??
TestConstants
.DefaultTimeoutTimeSpan;
60
milliseconds =
TestConstants
.DefaultTimeoutDuration;
75
milliseconds =
TestConstants
.DefaultTimeoutDuration;
108
milliseconds =
TestConstants
.DefaultTimeoutDuration;
123
milliseconds =
TestConstants
.DefaultTimeoutDuration;
138
milliseconds =
TestConstants
.DefaultTimeoutDuration;
153
milliseconds =
TestConstants
.DefaultTimeoutDuration;
tests\Shared\Processes\ChildProcessTests.cs (1)
371
await shutdown.DefaultTimeout(
TestConstants
.LongTimeoutDuration);
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
85
await scope.WaitForExitAsync(TestContext.Current.CancellationToken).DefaultTimeout(
TestConstants
.LongTimeoutDuration);
tests\Shared\Processes\ProcessTestFixture.cs (2)
157
await process.WaitForExitAsync(TestContext.Current.CancellationToken).DefaultTimeout(
TestConstants
.LongTimeoutDuration);
204
await process.WaitForExitAsync(TestContext.Current.CancellationToken).DefaultTimeout(
TestConstants
.ExtraLongTimeoutDuration);