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

Quarantine and fix RequestTrailers_CanReadTrailersFromRequest #31059

Merged
1 commit merged into from
Mar 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Microsoft.AspNetCore.Internal;
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http3;
using Microsoft.AspNetCore.Testing;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Net.Http.Headers;
using Xunit;

Expand Down Expand Up @@ -1635,6 +1636,7 @@ await requestStream.WaitForStreamErrorAsync(
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31057")]
public async Task RequestTrailers_CanReadTrailersFromRequest()
{
string testValue = null;
Expand All @@ -1651,8 +1653,7 @@ public async Task RequestTrailers_CanReadTrailersFromRequest()
};
var requestStream = await InitializeConnectionAndStreamsAsync(async c =>
{
var data = new byte[1024];
await c.Request.Body.ReadAsync(data);
await c.Request.Body.DrainAsync(default);

testValue = c.Request.GetTrailer("TestName");
});
Expand Down