Skip to content

Commit 95ea9c7

Browse files
danegstaCopilot
andcommitted
Use release E2E terminal lifecycle
Adapt the backported polyglot dev-localhost CLI E2E test to the release/13.4 test harness, which does not have CliE2ETestHelpers.StartRun. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0bdeedb commit 95ea9c7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/Aspire.Cli.EndToEnd.Tests/SmokeTests.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ public async Task CreateAndRunPolyglotAppHostWithDevLocalhostUrls()
8282

8383
using var terminal = CliE2ETestHelpers.CreateDockerTestTerminal(repoRoot, strategy, output, mountDockerSocket: true, workspace: workspace);
8484

85+
var pendingRun = terminal.RunAsync(TestContext.Current.CancellationToken);
86+
8587
var counter = new SequenceCounter();
8688
var auto = new Hex1bTerminalAutomator(terminal, defaultTimeout: TimeSpan.FromSeconds(500));
87-
await using var terminalRun = CliE2ETestHelpers.StartRun(terminal, workspace, auto, counter, output, TestContext.Current.CancellationToken);
8889

8990
await auto.PrepareDockerEnvironmentAsync(counter, workspace);
9091
await auto.InstallAspireCliAsync(strategy, counter);
@@ -111,6 +112,11 @@ await auto.WaitUntilAsync(s =>
111112

112113
await auto.Ctrl().KeyAsync(Hex1bKey.C);
113114
await auto.WaitForSuccessPromptAsync(counter);
115+
116+
await auto.TypeAsync("exit");
117+
await auto.EnterAsync();
118+
119+
await pendingRun;
114120
}
115121

116122
[CaptureWorkspaceOnFailure]

0 commit comments

Comments
 (0)