Quarantine DisablingClientValidation_DisablesItForPagesAndViews
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
## Failing Test(s)
- Microsoft.AspNetCore.Mvc.FunctionalTests.ClientValidationOptionsTests.DisablingClientValidation_DisablesItForPagesAndViews
## Error Message
```text
System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
```
## Stacktrace
```text
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.FunctionalTests.ClientValidationOptionsTests.DisablingClientValidation_DisablesItForPagesAndViews() in /_/src/Mvc/test/Mvc.FunctionalTests/ClientValidationOptionsTests.cs:line 24
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
----- Inner Stack Trace -----
at Microsoft.AspNetCore.TestHost.ResponseBodyReaderStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken) in /_/src/Hosting/TestHost/src/ResponseBodyReaderStream.cs:line 84
at System.IO.Stream.g__Core|27_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
```
## Logs
```text
```
## Build
aspnetcore-ci 5/27/2024, 9:27:49 AM
Contributor guide
Research direction
Start with Microsoft.AspNetCore.Mvc.FunctionalTests.ClientValidationOptionsTests.DisablingClientValidation_DisablesItForPagesAndViews in src/Mvc/test/Mvc.FunctionalTests/ClientValidationOptionsTests.cs, especially line 24, and review the ResponseBodyReaderStream failure in Hosting/TestHost/src/ResponseBodyReaderStream.cs. Run the named functional test and investigate why the request reaches the 100-second timeout; done means the test completes without TaskCanceledException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100