aspnet / BasicMiddleware

[Archived] Basic middleware components for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
169 stars 84 forks source link

React to CoreFx Stream changes #309

Closed Tratcher closed 6 years ago

Tratcher commented 6 years ago

These tests use BufferedStream and then a mock stream that the buffer gets flushed to. BufferedStream was just changed to call a new overload of WriteAsync when flushing, so the mock missed it. https://github.com/dotnet/corefx/blame/master/src/System.Runtime.Extensions/src/System/IO/BufferedStream.cs#L416

Replace the mock with a MemoryStream.