File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Servers/Kestrel/test/InMemory.FunctionalTests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3631,13 +3631,13 @@ public async Task ResponseGetMemoryAndStartAsyncMemoryReturnsNewMemory()
3631
3631
{
3632
3632
using ( var server = new TestServer ( async httpContext =>
3633
3633
{
3634
- var memory = httpContext . Response . BodyPipe . GetMemory ( ) ;
3634
+ var memory = httpContext . Response . BodyWriter . GetMemory ( ) ;
3635
3635
Assert . Equal ( 4096 , memory . Length ) ;
3636
3636
3637
3637
await httpContext . Response . StartAsync ( ) ;
3638
3638
// Original memory is disposed, don't compare against it.
3639
3639
3640
- memory = httpContext . Response . BodyPipe . GetMemory ( ) ;
3640
+ memory = httpContext . Response . BodyWriter . GetMemory ( ) ;
3641
3641
Assert . NotEqual ( 4096 , memory . Length ) ;
3642
3642
3643
3643
} , new TestServiceContext ( LoggerFactory ) ) )
@@ -3668,11 +3668,11 @@ public async Task ResponseGetMemoryAndStartAsyncAdvanceThrows()
3668
3668
{
3669
3669
using ( var server = new TestServer ( async httpContext =>
3670
3670
{
3671
- var memory = httpContext . Response . BodyPipe . GetMemory ( ) ;
3671
+ var memory = httpContext . Response . BodyWriter . GetMemory ( ) ;
3672
3672
3673
3673
await httpContext . Response . StartAsync ( ) ;
3674
3674
3675
- Assert . Throws < InvalidOperationException > ( ( ) => httpContext . Response . BodyPipe . Advance ( 1 ) ) ;
3675
+ Assert . Throws < InvalidOperationException > ( ( ) => httpContext . Response . BodyWriter . Advance ( 1 ) ) ;
3676
3676
3677
3677
} , new TestServiceContext ( LoggerFactory ) ) )
3678
3678
{
You can’t perform that action at this time.
0 commit comments