Fix a couple flaky tests (#1116)

This commit is contained in:
BrennanConroy 2017-11-14 14:44:15 -08:00 committed by GitHub
parent 34b0445dd8
commit 5d8aa1ee2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -126,6 +126,7 @@ namespace Microsoft.AspNetCore.SignalR.Client
private async Task DisposeAsyncCore()
{
await _connection.DisposeAsync();
await Closed;
}
// TODO: Client return values/tasks?
@ -334,7 +335,7 @@ namespace Microsoft.AspNetCore.SignalR.Client
}
}
private Task Shutdown(Exception ex = null)
private void Shutdown(Exception ex = null)
{
_logger.ShutdownConnection();
if (ex != null)
@ -360,7 +361,6 @@ namespace Microsoft.AspNetCore.SignalR.Client
}
_pendingCalls.Clear();
}
return Task.CompletedTask;
}
private async Task DispatchInvocationAsync(InvocationMessage invocation, CancellationToken cancellationToken)