From 9667907515d8530d8fe4ee7c7a51523c9f8ccb37 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Wed, 1 Jun 2016 15:58:46 -0700 Subject: [PATCH] Prevent IOException from incorrectly failing test expecting 400 response --- .../BadHttpRequestTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", "",