Incorrect nameof usage (#2967)
This commit is contained in:
parent
8a8d1e7d0a
commit
bc148a0724
|
|
@ -11,6 +11,7 @@ using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Connections;
|
using Microsoft.AspNetCore.Connections;
|
||||||
using Microsoft.AspNetCore.Http.Connections;
|
using Microsoft.AspNetCore.Http.Connections;
|
||||||
using Microsoft.AspNetCore.Http.Connections.Client;
|
using Microsoft.AspNetCore.Http.Connections.Client;
|
||||||
|
using Microsoft.AspNetCore.Http.Connections.Client.Internal;
|
||||||
using Microsoft.AspNetCore.SignalR.Protocol;
|
using Microsoft.AspNetCore.SignalR.Protocol;
|
||||||
using Microsoft.AspNetCore.SignalR.Tests;
|
using Microsoft.AspNetCore.SignalR.Tests;
|
||||||
using Microsoft.AspNetCore.Testing.xunit;
|
using Microsoft.AspNetCore.Testing.xunit;
|
||||||
|
|
@ -398,10 +399,10 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests
|
||||||
{
|
{
|
||||||
bool ExpectedErrors(WriteContext writeContext)
|
bool ExpectedErrors(WriteContext writeContext)
|
||||||
{
|
{
|
||||||
var firstLogCheck = (writeContext.LoggerName == nameof(Http.Connections.Client.Internal.ServerSentEventsTransport) ||
|
var firstLogCheck = (writeContext.LoggerName == typeof(ServerSentEventsTransport).FullName ||
|
||||||
writeContext.LoggerName == nameof(Http.Connections.Client.Internal.LongPollingTransport)) &&
|
writeContext.LoggerName == typeof(LongPollingTransport).FullName) &&
|
||||||
writeContext.EventId.Name == "ErrorSending";
|
writeContext.EventId.Name == "ErrorSending";
|
||||||
var secondLogCheck = writeContext.LoggerName == nameof(Http.Connections.Client.HttpConnection) &&
|
var secondLogCheck = writeContext.LoggerName == typeof(HttpConnection).FullName &&
|
||||||
writeContext.EventId.Name == "TransportThrewExceptionOnStop";
|
writeContext.EventId.Name == "TransportThrewExceptionOnStop";
|
||||||
return firstLogCheck || secondLogCheck;
|
return firstLogCheck || secondLogCheck;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue