Skip to content

Fix output validation in LaunchesBrowserOnStart test - #53498

Merged
tmat merged 1 commit into
dotnet:release/10.0.3xxfrom
tmat:FixLaunchesBrowserOnStartTest
Mar 18, 2026
Merged

tmat merged 1 commit into
dotnet:release/10.0.3xxfrom
tmat:FixLaunchesBrowserOnStartTest

Conversation

@tmat

@tmat tmat commented Mar 17, 2026

Copy link
Copy Markdown
Member

Remove assumption on output ordering.

@tmat
tmat requested a review from a team as a code owner March 17, 2026 17:51
Copilot AI review requested due to automatic review settings March 17, 2026 17:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates a flaky dotnet watch browser-launch unit test by removing reliance on a specific output ordering, aligning the assertions with other dotnet-watch.Tests patterns that wait for expected output to appear asynchronously.

Changes:

  • Replace immediate output list assertions with WaitUntilOutputContains for the app startup lines.
  • Replace AssertOutputContains with WaitUntilOutputContains for the “Launching browser” message to avoid races.

@tmat

tmat commented Mar 18, 2026

Copy link
Copy Markdown
Member Author

@DustinCampbell ptal

@tmat
tmat merged commit 4adf9e6 into dotnet:release/10.0.3xx Mar 18, 2026
32 checks passed
@tmat
tmat deleted the FixLaunchesBrowserOnStartTest branch March 18, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants