Skip to content

Commit 118f411

Browse files
authored
Quarantine and fix RequestTrailers_CanReadTrailersFromRequest #31057 (#31059)
1 parent 30f376d commit 118f411

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3StreamTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using Microsoft.AspNetCore.Internal;
1414
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http3;
1515
using Microsoft.AspNetCore.Testing;
16+
using Microsoft.AspNetCore.WebUtilities;
1617
using Microsoft.Net.Http.Headers;
1718
using Xunit;
1819

@@ -1635,6 +1636,7 @@ await requestStream.WaitForStreamErrorAsync(
16351636
}
16361637

16371638
[Fact]
1639+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/31057")]
16381640
public async Task RequestTrailers_CanReadTrailersFromRequest()
16391641
{
16401642
string testValue = null;
@@ -1651,8 +1653,7 @@ public async Task RequestTrailers_CanReadTrailersFromRequest()
16511653
};
16521654
var requestStream = await InitializeConnectionAndStreamsAsync(async c =>
16531655
{
1654-
var data = new byte[1024];
1655-
await c.Request.Body.ReadAsync(data);
1656+
await c.Request.Body.DrainAsync(default);
16561657

16571658
testValue = c.Request.GetTrailer("TestName");
16581659
});

0 commit comments

Comments
 (0)