Skip to content

Quarantine WriteAsJsonAsync_AsyncEnumerable_ClosedConnecton #45557

@Tratcher

Description

@Tratcher

Tracking dotnet/runtime#79556, there's a regression where the CancellationToken isn't being passed to the IAsyncEnumerable.

Failing Test(s)

Microsoft.AspNetCore.Http.Extensions.Tests.HttpResponseJsonExtensionsTests
WriteAsJsonAsync_AsyncEnumerable_ClosedConnecton
WriteAsJsonAsync_AsyncEnumerable_UserPassedTokenThrows
WriteAsJsonAsyncGeneric_AsyncEnumerable_ClosedConnecton
WriteAsJsonAsyncGeneric_AsyncEnumerable_UserPassedTokenThrows

Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest
WriteResponseBodyAsync_AsyncEnumerableConnectionCloses

Microsoft.AspNetCore.Mvc.Infrastructure.JsonResultExecutorTestBase
ExecuteAsync_AsyncEnumerableConnectionCloses
ExecuteAsyncWithDifferentContentType_AsyncEnumerableConnectionCloses

Error Message

  Message: 
Assert.False() Failure
Expected: False
Actual:   True

Stacktrace


  Stack Trace: 
HttpResponseJsonExtensionsTests.WriteAsJsonAsyncGeneric_AsyncEnumerableG_UserPassedTokenThrows() line 426
--- End of stack trace from previous location ---

Logs


Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=109479&view=ms.vss-test-web.build-test-results-tab&runId=2337376&resultId=105425&paneView=debug

Metadata

Metadata

Assignees

Labels

area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionstest-failuretest-fixed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions