Skip to content

Flaky test: WithHttpCommand_ResultsInExpectedResultForStatusCode #8194

Open
@mitchdenny

Description

@mitchdenny

Build Information

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

Build error leg or test failing: Aspire.Hosting.Tests.WithHttpCommandTests.WithHttpCommand_ResultsInExpectedResultForStatusCode
Pull request: #5363

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Assert.Equal() Failure: Values differ",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": true
}

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:

Activity

added
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
on Mar 20, 2025
DamianEdwards

DamianEdwards commented on Mar 24, 2025

@DamianEdwards
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.

added this to the 9.2 milestone on Mar 24, 2025
radical

radical commented on Apr 2, 2025

@radical
Member

@mitchdenny @DamianEdwards Is this a flaky test? It is marked with [QuarantinedTest] in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationdisabled-testsflaky-test

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

    Participants

    @radical@DamianEdwards@mitchdenny@eerhardt

    Issue actions

      Flaky test: WithHttpCommand_ResultsInExpectedResultForStatusCode · Issue #8194 · dotnet/aspire