Small test fix to avoid potential flakiness
This commit is contained in:
parent
cef46fdaa7
commit
bd3a8a3511
|
|
@ -3274,8 +3274,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
|
||||||
|
|
||||||
_pair.Application.Output.Complete(new ConnectionResetException(string.Empty));
|
_pair.Application.Output.Complete(new ConnectionResetException(string.Empty));
|
||||||
|
|
||||||
var result = await _pair.Application.Input.ReadAsync();
|
await StopConnectionAsync(1, ignoreNonGoAwayFrames: false);
|
||||||
Assert.False(result.IsCompleted);
|
|
||||||
Assert.Single(_logger.Messages, m => m.Exception is ConnectionResetException);
|
Assert.Single(_logger.Messages, m => m.Exception is ConnectionResetException);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue