From c723da88a49058df019691f6ba9b37de164cdd71 Mon Sep 17 00:00:00 2001 From: Chris R Date: Fri, 19 Mar 2021 10:04:20 -0700 Subject: [PATCH] Quarantine and fix RequestTrailers_CanReadTrailersFromRequest #31057 --- .../test/InMemory.FunctionalTests/Http3/Http3StreamTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3StreamTests.cs b/src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3StreamTests.cs index a7fce40ae41f..feb168969c20 100644 --- a/src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3StreamTests.cs +++ b/src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3StreamTests.cs @@ -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; @@ -1635,6 +1636,7 @@ await requestStream.WaitForStreamErrorAsync( } [Fact] + [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31057")] public async Task RequestTrailers_CanReadTrailersFromRequest() { string testValue = null; @@ -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"); });