File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1313using Microsoft . AspNetCore . Internal ;
1414using Microsoft . AspNetCore . Server . Kestrel . Core . Internal . Http3 ;
1515using Microsoft . AspNetCore . Testing ;
16+ using Microsoft . AspNetCore . WebUtilities ;
1617using Microsoft . Net . Http . Headers ;
1718using 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 } ) ;
You can’t perform that action at this time.
0 commit comments