aspnetcore/test/Microsoft.AspNetCore.Signal...
Pawel Kadluczka 06475270ec
Actually throwing exceptions from SendAsync (#1084)
SendAsync was using InvokeCoreAsync code to send messages. In case of exception InvokeCoreAsync is blocking and returns a task to the user so they can await for the remote call to complete. Any exception thrown is caught and used to fail the task returned to the user. SendAsync does not return a special task to the user so re-using InvokeCore resulted in swallowing exceptions. While SendAsync is fire and forget it actually should throw if the message could not be send and it was not happening.

While adding tests it turned out we did not test cases where Invoke/SendAsync/StreamAsync were invoked before starting the connection and this resulted in a NullReferenceException. I also fixed that.
2017-11-03 13:15:11 -07:00
..
HttpConnectionTests.cs Replace Received Event with OnReceived (#1006) 2017-10-18 17:10:51 -07:00
HubConnectionBuilderExtensionsTests.cs Rename With/GetTransportType to With/GetTransport 2017-09-13 09:46:17 -07:00
HubConnectionBuilderTests.cs Made tweaks to .NET client logging API (#869) 2017-09-13 09:18:06 -07:00
HubConnectionExtensionsTests.cs Late parameter binding (#1049) 2017-10-30 11:31:57 -07:00
HubConnectionProtocolTests.cs Late parameter binding (#1049) 2017-10-30 11:31:57 -07:00
HubConnectionTests.cs Actually throwing exceptions from SendAsync (#1084) 2017-11-03 13:15:11 -07:00
LongPollingTransportTests.cs Make sure long polling transport can survive http client timeout 2017-09-07 14:14:52 -07:00
Microsoft.AspNetCore.SignalR.Client.Tests.csproj Pin package and tool versions to make build more repeatable 2017-11-01 16:40:51 -07:00
ResponseUtils.cs
ServerSentEventsParserTests.cs Updating default pattern(#1046) 2017-10-23 22:20:31 -07:00
ServerSentEventsTransportTests.cs
TaskQueueTests.cs
TestConnection.cs Removing Connected event from TestConnection (#1055) 2017-10-24 23:23:56 -07:00
TestTransportFactory.cs