diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs b/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs index 992da47016..4dfac848e4 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs +++ b/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs @@ -459,8 +459,8 @@ namespace Microsoft.AspNetCore.SignalR.Tests await firstClient.SendInvocationAsync("BroadcastMethod", "test").OrTimeout(); foreach (var result in await Task.WhenAll( - firstClient.Read(), - secondClient.Read()).OrTimeout()) + firstClient.ReadAsync(), + secondClient.ReadAsync()).OrTimeout()) { var invocation = Assert.IsType(result); Assert.Equal("Broadcast", invocation.Target); @@ -505,7 +505,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests await firstClient.SendInvocationAsync(nameof(MethodHub.GroupSendMethod), "testGroup", "test").OrTimeout(); // check that 'secondConnection' has received the group send - var hubMessage = await secondClient.Read().OrTimeout(); + var hubMessage = await secondClient.ReadAsync().OrTimeout(); var invocation = Assert.IsType(hubMessage); Assert.Equal("Send", invocation.Target); Assert.Equal(1, invocation.Arguments.Length); @@ -558,7 +558,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests await firstClient.SendInvocationAsync("ClientSendMethod", secondClient.Connection.User.Identity.Name, "test").OrTimeout(); // check that 'secondConnection' has received the group send - var hubMessage = await secondClient.Read().OrTimeout(); + var hubMessage = await secondClient.ReadAsync().OrTimeout(); var invocation = Assert.IsType(hubMessage); Assert.Equal("Send", invocation.Target); Assert.Equal(1, invocation.Arguments.Length); @@ -591,7 +591,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests await firstClient.SendInvocationAsync("ConnectionSendMethod", secondClient.Connection.ConnectionId, "test").OrTimeout(); // check that 'secondConnection' has received the group send - var hubMessage = await secondClient.Read().OrTimeout(); + var hubMessage = await secondClient.ReadAsync().OrTimeout(); var invocation = Assert.IsType(hubMessage); Assert.Equal("Send", invocation.Target); Assert.Equal(1, invocation.Arguments.Length); @@ -623,7 +623,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests await firstClient.SendInvocationAsync("DelayedSend", secondClient.Connection.ConnectionId, "test").OrTimeout(); // check that 'secondConnection' has received the group send - var hubMessage = await secondClient.Read().OrTimeout(); + var hubMessage = await secondClient.ReadAsync().OrTimeout(); var invocation = Assert.IsType(hubMessage); Assert.Equal("Send", invocation.Target); Assert.Equal(1, invocation.Arguments.Length); diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/TestClient.cs b/test/Microsoft.AspNetCore.SignalR.Tests/TestClient.cs index ab697ac8d7..6e80b42c5a 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests/TestClient.cs +++ b/test/Microsoft.AspNetCore.SignalR.Tests/TestClient.cs @@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests var messages = new List(); while (true) { - var message = await Read(); + var message = await ReadAsync(); if (message == null) { @@ -92,7 +92,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests while (true) { - var message = await Read(); + var message = await ReadAsync(); if (message == null) { @@ -131,7 +131,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests return invocationId; } - public async Task Read() + public async Task ReadAsync() { while (true) {