mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 10:48:46 +00:00
signalr connection fails if can't connect in 5 seconds.
This commit is contained in:
parent
5ab873150e
commit
197cad7fb5
1 changed files with 8 additions and 1 deletions
|
@ -121,9 +121,16 @@ namespace NzbDrone.Integration.Test
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var retryCount = 0;
|
||||||
|
|
||||||
while (_signalrConnection.State != ConnectionState.Connected)
|
while (_signalrConnection.State != ConnectionState.Connected)
|
||||||
{
|
{
|
||||||
|
if (retryCount > 25)
|
||||||
|
{
|
||||||
|
Assert.Fail("Couldn't establish signalr connection. State: {0}", _signalrConnection.State);
|
||||||
|
}
|
||||||
|
|
||||||
|
retryCount++;
|
||||||
Console.WriteLine("Connecting to signalR" + _signalrConnection.State);
|
Console.WriteLine("Connecting to signalR" + _signalrConnection.State);
|
||||||
Thread.Sleep(200);
|
Thread.Sleep(200);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue