Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test: WithHttpCommand_ResultsInExpectedResultForStatusCode #8194

Open
mitchdenny opened this issue Mar 20, 2025 · 2 comments
Open

Flaky test: WithHttpCommand_ResultsInExpectedResultForStatusCode #8194

mitchdenny opened this issue Mar 20, 2025 · 2 comments
Assignees
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication disabled-tests
Milestone

Comments

@mitchdenny
Copy link
Member

Disabled in: #8189

https://github.com/dotnet/aspire/actions/runs/13959173935/job/39077271364?pr=8189

[xUnit.net 00:03:11.39]         | [2025-03-20T00:20:35] Aspire.Hosting.Dcp.dcp.start-apiserver Information: Shutdown complete.
  Failed Aspire.Hosting.Tests.WithHttpCommandTests.WithHttpCommand_ResultsInExpectedResultForStatusCode(statusCode: 200, expectSuccess: True) [32 s]
  Error Message:
   Assert.Equal() Failure: Values differ
Expected: True
Actual:   False
  Stack Trace:
     at Aspire.Hosting.Tests.WithHttpCommandTests.WithHttpCommand_ResultsInExpectedResultForStatusCode(Int32 statusCode, Boolean expectSuccess) in /_/tests/Aspire.Hosting.Tests/WithHttpCommandTests.cs:line 132
--- End of stack trace from previous location ---
  Standard Output Messages:
@github-actions github-actions bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 20, 2025
@DamianEdwards
Copy link
Member

I think I'm going to rewrite these to use a mock HttpMessageHandler to try and avoid needing to hit a real service at all.

@DamianEdwards DamianEdwards self-assigned this Mar 24, 2025
@DamianEdwards DamianEdwards added this to the 9.2 milestone Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication disabled-tests
Projects
None yet
Development

No branches or pull requests

4 participants