Getting timeouts when debugging Aspire tests #6937
Labels
area-app-testing
Issues pertaining to the APIs in Aspire.Hosting.Testing
untriaged
New issue has not been triaged
Is there an existing issue for this?
Describe the bug
I have a .NET 9 project that uses Aspire, and I added an Aspire test project. One of my tests had an issue, and I started to debug it (in Rider, version 2024.3.2). Breakpoints are hit, I start investigating values, and then a timeout is hit and the debug session ends (problem).
Polly.Timeout.TimeoutRejectedException: The operation didn't complete within the allowed timeout of '00:00:30'.
This seems somewhat similar to #704, which was closed as Not Planned, but I feel this is a serious problem for those adopting Aspire. I have to hurry up when debugging; otherwise, the test I am debugging times out.
I tried adding this code to the ServiceDefault project to go around the problem (as suggested by @cmeyertons in #704 (comment)):
`
But this does not help me, the above timeout still kicks in. Is there really nothing we can do about this?
Expected Behavior
Timeouts must be extended when debugging
Steps To Reproduce
Repro steps are in the description above
Exceptions (if any)
I slightly edited the above stack trace to remove a company name, replaced it with 'ABC'
.NET Version info
9.0.100
Anything else?
Aspire nuget versions: 9.0.0
ASP.NET Core: 9.0
JetBrains Rider 2024.3.2, with .NET Aspire plugin version 1.6.4 (this is the bundled version)
The text was updated successfully, but these errors were encountered: