92 references to WaitAsync
Aspire.Cli.Tests (14)
Certificates\CertificateServiceTests.cs (1)
39await cs.EnsureCertificatesTrustedAsync(runner, TestContext.Current.CancellationToken).WaitAsync(CliTestConstants.DefaultTimeout);
Hosting\CliOrphanDetectorTests.cs (9)
28await detector.StartAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 47await detector.StartAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 70await detector.StartAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 91await detector.StartAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 121await detector.StartAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 163await detector.StartAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 189await detector.StartAsync(CancellationToken.None).WaitAsync(TimeSpan.FromSeconds(5)); 231await resourcesCreatedTcs.Task.WaitAsync(TimeSpan.FromSeconds(60)); 234await pendingRun.WaitAsync(TimeSpan.FromSeconds(60));
Utils\CliUpdateNotificationServiceTests.cs (4)
68await notifier.CheckForCliUpdatesAsync(workspace.WorkspaceRoot, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout); 123await notifier.CheckForCliUpdatesAsync(workspace.WorkspaceRoot, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout); 178await notifier.CheckForCliUpdatesAsync(workspace.WorkspaceRoot, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout); 229await notifier.CheckForCliUpdatesAsync(workspace.WorkspaceRoot, CancellationToken.None).WaitAsync(CliTestConstants.DefaultTimeout);
Aspire.Dashboard.Components.Tests (2)
Layout\MainLayoutTests.cs (1)
75await messageShownTcs.Task.WaitAsync(TimeSpan.FromSeconds(5));
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Dashboard.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting (1)
Dcp\Process\ProcessUtil.cs (1)
155await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Aspire.Hosting.Azure (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
155await _processLifetimeTask.WaitAsync(s_processExitTimeout).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
112await runTask.WaitAsync(TimeSpan.FromSeconds(10));
Aspire.Hosting.Containers.Tests (1)
WithDockerfileTests.cs (1)
731await app.ResourceNotifications.WaitForResourceAsync(resourceName, resourceState).WaitAsync(timeout ?? TimeSpan.FromMinutes(3));
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
156await app.RunAsync().WaitAsync(TimeSpan.FromSeconds(60));
Aspire.Hosting.GitHub.Models.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Kafka.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.MySql.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.NodeJs.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.OpenAI.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
103await app.ResourceNotifications.WaitForResourceAsync("pyproj", "Finished").WaitAsync(TimeSpan.FromSeconds(30));
Aspire.Hosting.RabbitMQ.Tests (3)
RabbitMQFunctionalTests.cs (2)
140await app.WaitForHealthyAsync(rabbitMQ1).WaitAsync(TestConstants.LongTimeoutTimeSpan); 197await app.WaitForHealthyAsync(rabbitMQ2).WaitAsync(TestConstants.LongTimeoutTimeSpan);
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Testing.Tests (12)
ResourceLoggerForwarderServiceTests.cs (2)
91await subscribedTcs.Task.WaitAsync(TimeSpan.FromSeconds(15)); 105await expectedLogCountTcs.Task.WaitAsync(TimeSpan.FromSeconds(15));
TestingBuilderTests.cs (8)
179await app.WaitForTextAsync("Application started.").WaitAsync(TimeSpan.FromMinutes(1)); 238await app.WaitForTextAsync("Application started.").WaitAsync(TimeSpan.FromMinutes(1)); 276await app.WaitForTextAsync("Application started.").WaitAsync(TimeSpan.FromMinutes(1)); 319await app.WaitForTextAsync("Application started.").WaitAsync(TimeSpan.FromMinutes(1)); 370await app.WaitForTextAsync("Application started.").WaitAsync(TimeSpan.FromMinutes(1)); 419await app.WaitForTextAsync("Application started.").WaitAsync(TimeSpan.FromMinutes(1)); 497await app.StartAsync().WaitAsync(TimeSpan.FromSeconds(10)); 534await app.StartAsync().WaitAsync(TimeSpan.FromSeconds(10));
TestingFactoryTests.cs (2)
52await _app.WaitForTextAsync("Application started.", "mywebapp1").WaitAsync(TimeSpan.FromMinutes(1)); 79await _app.ResourceNotifications.WaitForResourceAsync("mywebapp1").WaitAsync(TimeSpan.FromSeconds(60));
Aspire.Hosting.Tests (23)
Backchannel\AppHostBackchannelTests.cs (6)
37await app.StartAsync().WaitAsync(TimeSpan.FromSeconds(60)); 43await socket.ConnectAsync(endpoint).WaitAsync(TimeSpan.FromSeconds(60)); 50await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60)); 75await app.StartAsync().WaitAsync(TimeSpan.FromSeconds(60)); 81await socket.ConnectAsync(endpoint).WaitAsync(TimeSpan.FromSeconds(60)); 100await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60));
Backchannel\Exec\ContainerResourceExecTests.cs (2)
38await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60)); 62await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60));
Backchannel\Exec\ProjectResourceExecTests.cs (5)
32await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60)); 55await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60)); 76await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60)); 100await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60)); 123await app.StopAsync().WaitAsync(TimeSpan.FromSeconds(60));
OperationModesTests.cs (8)
31await app.StartAsync().WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 35await app.StopAsync().WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 60await app.StartAsync().WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 64await app.StopAsync().WaitAsync(TestConstants.LongTimeoutTimeSpan); 89await app.StartAsync().WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 93await app.StopAsync().WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 120await app.StartAsync().WaitAsync(TestConstants.DefaultTimeoutTimeSpan); 124await app.StopAsync().WaitAsync(TestConstants.DefaultTimeoutTimeSpan);
Orchestrator\ParameterProcessorTests.cs (1)
91await watchTask.WaitAsync(TimeSpan.FromSeconds(5));
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.Hosting.Valkey.Tests (4)
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
ValkeyFunctionalTests.cs (3)
44await app.WaitForHealthyAsync(valkey).WaitAsync(TestConstants.LongTimeoutTimeSpan); 106await app.WaitForHealthyAsync(valkey1).WaitAsync(TestConstants.LongTimeoutTimeSpan); 157await app.WaitForHealthyAsync(valkey2).WaitAsync(TestConstants.LongTimeoutTimeSpan);
Aspire.Playground.Tests (9)
AppHostTests.cs (3)
50await Task.WhenAll(tasks).WaitAsync(TimeSpan.FromMinutes(5)); 70await app.WaitForResources().WaitAsync(TimeSpan.FromMinutes(5)); 79await app.WaitForResource(ResourceName, TargetState).WaitAsync(TimeSpan.FromMinutes(5));
ProjectSpecificTests.cs (5)
26await app.WaitForResources().WaitAsync(TestConstants.ExtraLongTimeoutTimeSpan); 29.WaitAsync(TestConstants.ExtraLongTimeoutTimeSpan); 43await app.WaitForResources().WaitAsync(TestConstants.ExtraLongTimeoutTimeSpan); 46await app.WaitForTextAsync("Hello, World!").WaitAsync(TestConstants.ExtraLongTimeoutTimeSpan); 70await app.WaitForResources().WaitAsync(TestConstants.ExtraLongTimeoutTimeSpan);
tests\Shared\AsyncTestHelpers.cs (1)
173await task.WaitAsync(timeout).ConfigureAwait(false);
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
68await tsc.Task.WaitAsync(TimeSpan.FromMinutes(1));
Aspire.RabbitMQ.Client.v7.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
68await tsc.Task.WaitAsync(TimeSpan.FromMinutes(1));
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitHostTest.cs (1)
241await initializeTask.WaitAsync(initializeTimeout);
Microsoft.AspNetCore.Components.Tests (5)
NavigationManagerTest.cs (4)
519await tcs.Task.WaitAsync(Timeout); 575await tcs.Task.WaitAsync(Timeout); 636await tcs.Task.WaitAsync(Timeout); 845await navigationPreventedTcs.Task.WaitAsync(Timeout);
RendererTest.cs (1)
342await Assert.ThrowsAsync<TimeoutException>(() => renderTask1.WaitAsync(TimeSpan.FromMilliseconds(250)));
Microsoft.AspNetCore.InternalTesting (1)
src\Shared\TaskExtensions.cs (1)
123await task.WaitAsync(timeout).ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\Shared\TaskExtensions.cs (1)
123await task.WaitAsync(timeout).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Resolver\ResolveAddressesTests.cs (1)
287await requestSemaphore.WaitAsync().WaitAsync(Options.Timeout);
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1148await task.WaitAsync(TimeSpan.FromMilliseconds(WaitForCloseTimeoutMs)).ConfigureAwait(false);