From bd3a8a3511238a87c61d9ed798db373c1b88dd78 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Thu, 9 Aug 2018 12:12:24 -0700 Subject: [PATCH] Small test fix to avoid potential flakiness --- test/Kestrel.Core.Tests/Http2ConnectionTests.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/Kestrel.Core.Tests/Http2ConnectionTests.cs b/test/Kestrel.Core.Tests/Http2ConnectionTests.cs index 5b1172e240..927fd34d4c 100644 --- a/test/Kestrel.Core.Tests/Http2ConnectionTests.cs +++ b/test/Kestrel.Core.Tests/Http2ConnectionTests.cs @@ -3274,8 +3274,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests _pair.Application.Output.Complete(new ConnectionResetException(string.Empty)); - var result = await _pair.Application.Input.ReadAsync(); - Assert.False(result.IsCompleted); + await StopConnectionAsync(1, ignoreNonGoAwayFrames: false); Assert.Single(_logger.Messages, m => m.Exception is ConnectionResetException); }