Skip to content

Commit 33d8cd6

Browse files
committed
Fix test
1 parent 009380f commit 33d8cd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/ResponseTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3631,13 +3631,13 @@ public async Task ResponseGetMemoryAndStartAsyncMemoryReturnsNewMemory()
36313631
{
36323632
using (var server = new TestServer(async httpContext =>
36333633
{
3634-
var memory = httpContext.Response.BodyPipe.GetMemory();
3634+
var memory = httpContext.Response.BodyWriter.GetMemory();
36353635
Assert.Equal(4096, memory.Length);
36363636

36373637
await httpContext.Response.StartAsync();
36383638
// Original memory is disposed, don't compare against it.
36393639

3640-
memory = httpContext.Response.BodyPipe.GetMemory();
3640+
memory = httpContext.Response.BodyWriter.GetMemory();
36413641
Assert.NotEqual(4096, memory.Length);
36423642

36433643
}, new TestServiceContext(LoggerFactory)))
@@ -3668,11 +3668,11 @@ public async Task ResponseGetMemoryAndStartAsyncAdvanceThrows()
36683668
{
36693669
using (var server = new TestServer(async httpContext =>
36703670
{
3671-
var memory = httpContext.Response.BodyPipe.GetMemory();
3671+
var memory = httpContext.Response.BodyWriter.GetMemory();
36723672

36733673
await httpContext.Response.StartAsync();
36743674

3675-
Assert.Throws<InvalidOperationException>(() => httpContext.Response.BodyPipe.Advance(1));
3675+
Assert.Throws<InvalidOperationException>(() => httpContext.Response.BodyWriter.Advance(1));
36763676

36773677
}, new TestServiceContext(LoggerFactory)))
36783678
{

0 commit comments

Comments
 (0)