Fix flaky test (#12365)
This commit is contained in:
parent
1950e59714
commit
7b65a32b8b
|
|
@ -1772,12 +1772,11 @@ namespace Microsoft.AspNetCore.Http.Connections.Tests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1975", FlakyOn.All)]
|
||||
public async Task ErrorDuringPollWillCloseConnection()
|
||||
{
|
||||
bool ExpectedErrors(WriteContext writeContext)
|
||||
{
|
||||
return (writeContext.LoggerName == typeof(LongPollingServerTransport).FullName &&
|
||||
return (writeContext.LoggerName.Equals("Microsoft.AspNetCore.Http.Connections.Internal.Transports.LongPollingTransport") &&
|
||||
writeContext.EventId.Name == "LongPollingTerminated") ||
|
||||
(writeContext.LoggerName == typeof(HttpConnectionManager).FullName &&
|
||||
writeContext.EventId.Name == "FailedDispose");
|
||||
|
|
|
|||
Loading…
Reference in New Issue