Small test fix to avoid potential flakiness

This commit is contained in:
Stephen Halter 2018-08-09 12:12:24 -07:00
parent cef46fdaa7
commit bd3a8a3511
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}