1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 09:47:39 +00:00

signalr connection fails if can't connect in 5 seconds.

This commit is contained in:
kayone 2013-11-13 12:27:27 -08:00
parent 5ab873150e
commit 197cad7fb5

View file

@ -121,10 +121,17 @@ namespace NzbDrone.Integration.Test
}
});
var retryCount = 0;
while (_signalrConnection.State != ConnectionState.Connected)
{
Console.WriteLine("Connecting to signalR" + _signalrConnection.State);
if (retryCount > 25)
{
Assert.Fail("Couldn't establish signalr connection. State: {0}", _signalrConnection.State);
}
retryCount++;
Console.WriteLine("Connecting to signalR" + _signalrConnection.State);
Thread.Sleep(200);
}