Created
February 22, 2014 19:05
-
-
Save haacked/9160205 to your computer and use it in GitHub Desktop.
git diff-tree --cc cc5b002a on signalr/signalr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc5b002a5140e2d60184de42554a8737981c846c | |
diff --cc tests/Microsoft.AspNet.SignalR.FunctionalTests/Client/HubProxyFacts.cs | |
index aaad4c4,8bf42fc..4979ab7 | |
--- a/tests/Microsoft.AspNet.SignalR.FunctionalTests/Client/HubProxyFacts.cs | |
+++ b/tests/Microsoft.AspNet.SignalR.FunctionalTests/Client/HubProxyFacts.cs | |
@@@ -36,11 -36,9 +37,11 @@@ namespace Microsoft.AspNet.SignalR.Test | |
hubConnection.Start(host.Transport).Wait(); | |
- proxy.Invoke("Send", "hello").Wait(); | |
+ proxy.InvokeWithTimeout("Send", "hello"); | |
- Assert.True(wh.WaitOne(TimeSpan.FromSeconds(5))); | |
+ Assert.True(wh.WaitOne(TimeSpan.FromSeconds(10))); | |
+ | |
+ hubConnection.Stop(); | |
} | |
} | |
@@@ -65,9 -63,9 +66,9 @@@ | |
hubConnection.Start(host.Transport).Wait(); | |
- proxy.Invoke("Send", "hello").Wait(); | |
+ proxy.InvokeWithTimeout("Send", "hello"); | |
- Assert.True(wh.WaitOne(TimeSpan.FromSeconds(5))); | |
+ Assert.True(wh.WaitOne(TimeSpan.FromSeconds(10))); | |
} | |
} | |
diff --cc tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubFacts.cs | |
index d153740,4bdad4d..393a1eb | |
--- a/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubFacts.cs | |
+++ b/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubFacts.cs | |
@@@ -297,8 -291,10 +298,8 @@@ namespace Microsoft.AspNet.SignalR.Test | |
Name = "David" | |
}; | |
- var person1 = hub.Invoke<SignalR.Samples.Hubs.DemoHub.DemoHub.Person>("ComplexType", person).Result; | |
+ var person1 = hub.InvokeWithTimeout<SignalR.Samples.Hubs.DemoHub.DemoHub.Person>("ComplexType", person); | |
var person2 = hub.GetValue<SignalR.Samples.Hubs.DemoHub.DemoHub.Person>("person"); | |
- JObject obj = ((dynamic)hub).person; | |
- var person3 = obj.ToObject<SignalR.Samples.Hubs.DemoHub.DemoHub.Person>(); | |
Assert.NotNull(person1); | |
Assert.NotNull(person2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment