50 references to WaitForTextAsync
Aspire.Hosting (1)
ApplicationModel\AspireTerminal.cs (1)
72/// output. Use <see cref="WaitForTextAsync"/> to wait for the workload to reach a known state. It is also
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
176await terminal.WaitForTextAsync(prompt, TimeSpan.FromSeconds(30), cancellation.Token); 179await terminal.WaitForTextAsync(expectedOutput, TimeSpan.FromSeconds(30), cancellation.Token);
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
176await terminal.WaitForTextAsync(prompt, TimeSpan.FromSeconds(30), cancellation.Token); 179await terminal.WaitForTextAsync(expectedOutput, TimeSpan.FromSeconds(30), cancellation.Token);
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
176await terminal.WaitForTextAsync(prompt, TimeSpan.FromSeconds(30), cancellation.Token); 179await terminal.WaitForTextAsync(expectedOutput, TimeSpan.FromSeconds(30), cancellation.Token);
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
176await terminal.WaitForTextAsync(prompt, TimeSpan.FromSeconds(30), cancellation.Token); 179await terminal.WaitForTextAsync(expectedOutput, TimeSpan.FromSeconds(30), cancellation.Token);
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
176await terminal.WaitForTextAsync(prompt, TimeSpan.FromSeconds(30), cancellation.Token); 179await terminal.WaitForTextAsync(expectedOutput, TimeSpan.FromSeconds(30), cancellation.Token);
Aspire.Hosting.Tests (33)
Dashboard\DashboardServiceTests.cs (2)
1512await terminal.WaitForTextAsync("ready").DefaultTimeout(); 1623await terminal.WaitForTextAsync("still usable").DefaultTimeout();
Terminals\Hex1bAspireTerminalTests.cs (18)
140await terminal.WaitForTextAsync("ready").DefaultTimeout(); 181await terminal.WaitForTextAsync("initial-ready").DefaultTimeout(); 185await terminal.WaitForTextAsync("automation-ready").DefaultTimeout(); 207await terminal.WaitForTextAsync("initial-ready").DefaultTimeout(); 212await terminal.WaitForTextAsync("attached-ready").DefaultTimeout(); 217await terminal.WaitForTextAsync("resized-ready").DefaultTimeout(); 222await terminal.WaitForTextAsync("narrowed-ready").DefaultTimeout(); 227await terminal.WaitForTextAsync("detached-ready").DefaultTimeout(); 280await terminal.WaitForTextAsync("ready").DefaultTimeout(); 304await terminal.WaitForTextAsync("process-ready").DefaultTimeout(); 346await terminal.WaitForTextAsync("ready").DefaultTimeout(); 367await terminal.WaitForTextAsync("ready").DefaultTimeout(); 370await terminal.WaitForTextAsync("alt-ready").DefaultTimeout(); 375await terminal.WaitForTextAsync("ABCDEFGHIJKLMNOPQRST").DefaultTimeout(); 397await terminal.WaitForTextAsync("ready").DefaultTimeout(); 412await Assert.ThrowsAsync<InvalidOperationException>(() => terminal.WaitForTextAsync("never")); 477terminal.WaitForTextAsync("after-disconnect")).DefaultTimeout(); 592await terminal.WaitForTextAsync("ready").DefaultTimeout();
Terminals\Hex1bPtySocketTests.cs (2)
220dock.WaitForTextAsync("dock-ready"), 221prompt.WaitForTextAsync("prompt-ready")).DefaultTimeout();
Terminals\InteractionServiceTerminalTests.cs (2)
383await terminal.WaitForTextAsync(marker).DefaultTimeout(); 404await terminal.WaitForTextAsync("ready").DefaultTimeout();
Terminals\ResourceAspireTerminalTests.cs (5)
45await terminal.WaitForTextAsync("apphost-was-here", TimeSpan.FromSeconds(30)).DefaultTimeout(); 63() => terminal.WaitForTextAsync("text-the-workload-never-writes", TimeSpan.FromSeconds(1))).DefaultTimeout(); 100await terminal.WaitForTextAsync("recovered-connection").DefaultTimeout(); 114await terminal.WaitForTextAsync("first-host").DefaultTimeout(); 120await terminal.WaitForTextAsync("replacement-host").DefaultTimeout();
Terminals\TerminalKeyInputTests.cs (2)
54await terminal.WaitForTextAsync("key-input-ready").DefaultTimeout(); 71await terminal.WaitForTextAsync("key-input-mode-changed").DefaultTimeout();
Terminals\TerminalServiceTests.cs (2)
302await Task.WhenAll(first.WaitForTextAsync("ready"), second.WaitForTextAsync("ready")).DefaultTimeout();
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
176await terminal.WaitForTextAsync(prompt, TimeSpan.FromSeconds(30), cancellation.Token); 179await terminal.WaitForTextAsync(expectedOutput, TimeSpan.FromSeconds(30), cancellation.Token);
Terminals.AppHost (4)
TerminalInteractionCommands.cs (4)
191await terminal.WaitForTextAsync("aspire-dock-ready", TimeSpan.FromSeconds(10), commandContext.CancellationToken); 424await terminal.WaitForTextAsync($"apphost-was-here-{marker}\r\n", TimeSpan.FromSeconds(15), commandContext.CancellationToken); 451await terminal.WaitForTextAsync($"between 1 and {limit}", TimeSpan.FromMinutes(2), cancellationToken); 458await terminal.WaitForTextAsync($"Guess #{attempt}: ", s_promptTimeout, cancellationToken);