From bc148a07244a451e48b7e0efdf16db8f69f788ff Mon Sep 17 00:00:00 2001 From: BrennanConroy <brecon@microsoft.com> Date: Tue, 18 Sep 2018 08:36:17 -0700 Subject: [PATCH] Incorrect nameof usage (#2967) --- .../HubConnectionTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs index c8798cdac7d..a4350d2c00f 100644 --- a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs +++ b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs @@ -11,6 +11,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Connections; using Microsoft.AspNetCore.Http.Connections; using Microsoft.AspNetCore.Http.Connections.Client; +using Microsoft.AspNetCore.Http.Connections.Client.Internal; using Microsoft.AspNetCore.SignalR.Protocol; using Microsoft.AspNetCore.SignalR.Tests; using Microsoft.AspNetCore.Testing.xunit; @@ -398,10 +399,10 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests { bool ExpectedErrors(WriteContext writeContext) { - var firstLogCheck = (writeContext.LoggerName == nameof(Http.Connections.Client.Internal.ServerSentEventsTransport) || - writeContext.LoggerName == nameof(Http.Connections.Client.Internal.LongPollingTransport)) && + var firstLogCheck = (writeContext.LoggerName == typeof(ServerSentEventsTransport).FullName || + writeContext.LoggerName == typeof(LongPollingTransport).FullName) && writeContext.EventId.Name == "ErrorSending"; - var secondLogCheck = writeContext.LoggerName == nameof(Http.Connections.Client.HttpConnection) && + var secondLogCheck = writeContext.LoggerName == typeof(HttpConnection).FullName && writeContext.EventId.Name == "TransportThrewExceptionOnStop"; return firstLogCheck || secondLogCheck; } -- GitLab