Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit bc148a0

Browse files
Incorrect nameof usage (#2967)
1 parent 8a8d1e7 commit bc148a0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Microsoft.AspNetCore.Connections;
1212
using Microsoft.AspNetCore.Http.Connections;
1313
using Microsoft.AspNetCore.Http.Connections.Client;
14+
using Microsoft.AspNetCore.Http.Connections.Client.Internal;
1415
using Microsoft.AspNetCore.SignalR.Protocol;
1516
using Microsoft.AspNetCore.SignalR.Tests;
1617
using Microsoft.AspNetCore.Testing.xunit;
@@ -398,10 +399,10 @@ public async Task StreamDoesNotStartIfTokenAlreadyCanceled(string protocolName,
398399
{
399400
bool ExpectedErrors(WriteContext writeContext)
400401
{
401-
var firstLogCheck = (writeContext.LoggerName == nameof(Http.Connections.Client.Internal.ServerSentEventsTransport) ||
402-
writeContext.LoggerName == nameof(Http.Connections.Client.Internal.LongPollingTransport)) &&
402+
var firstLogCheck = (writeContext.LoggerName == typeof(ServerSentEventsTransport).FullName ||
403+
writeContext.LoggerName == typeof(LongPollingTransport).FullName) &&
403404
writeContext.EventId.Name == "ErrorSending";
404-
var secondLogCheck = writeContext.LoggerName == nameof(Http.Connections.Client.HttpConnection) &&
405+
var secondLogCheck = writeContext.LoggerName == typeof(HttpConnection).FullName &&
405406
writeContext.EventId.Name == "TransportThrewExceptionOnStop";
406407
return firstLogCheck || secondLogCheck;
407408
}

0 commit comments

Comments
 (0)