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