File tree 1 file changed +3
-2
lines changed
src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
using Microsoft . AspNetCore . Internal ;
14
14
using Microsoft . AspNetCore . Server . Kestrel . Core . Internal . Http3 ;
15
15
using Microsoft . AspNetCore . Testing ;
16
+ using Microsoft . AspNetCore . WebUtilities ;
16
17
using Microsoft . Net . Http . Headers ;
17
18
using Xunit ;
18
19
@@ -1635,6 +1636,7 @@ await requestStream.WaitForStreamErrorAsync(
1635
1636
}
1636
1637
1637
1638
[ Fact ]
1639
+ [ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/31057" ) ]
1638
1640
public async Task RequestTrailers_CanReadTrailersFromRequest ( )
1639
1641
{
1640
1642
string testValue = null ;
@@ -1651,8 +1653,7 @@ public async Task RequestTrailers_CanReadTrailersFromRequest()
1651
1653
} ;
1652
1654
var requestStream = await InitializeConnectionAndStreamsAsync ( async c =>
1653
1655
{
1654
- var data = new byte [ 1024 ] ;
1655
- await c . Request . Body . ReadAsync ( data ) ;
1656
+ await c . Request . Body . DrainAsync ( default ) ;
1656
1657
1657
1658
testValue = c . Request . GetTrailer ( "TestName" ) ;
1658
1659
} ) ;
You can’t perform that action at this time.
0 commit comments