From 5ffb082acbb7f8c2477513003a722d80c1fe2121 Mon Sep 17 00:00:00 2001 From: Mikael Mengistu Date: Sun, 22 Oct 2017 23:37:12 -0700 Subject: [PATCH] Add Missing Await in Test (#1045) --- test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs b/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs index f120f60d1f..02972620c1 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs +++ b/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs @@ -1538,10 +1538,10 @@ namespace Microsoft.AspNetCore.SignalR.Tests { return Clients.Client(connectionId).Send(message); } - public Task DelayedSend(string connectionId, string message) + public async Task DelayedSend(string connectionId, string message) { - Task.Delay(100); - return Clients.Client(connectionId).Send(message); + await Task.Delay(100); + await Clients.Client(connectionId).Send(message); } public Task GroupAddMethod(string groupName) {