diff --git a/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs b/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs index e8baf36f10..dd3380be64 100644 --- a/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs +++ b/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs @@ -144,7 +144,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests await connection.Receive( "Connection: close", ""); - await connection.ReceiveEnd( + await connection.ReceiveForcedEnd( $"Date: {connection.Server.Context.DateHeaderValue}", "Content-Length: 0", "",