removed some code we dont need as not expecting any errors so should just throw an exception to the global handler

This commit is contained in:
Tom Gardham-Pallister
2017-02-06 21:47:08 +00:00
parent a4495b8fa9
commit 0a66051b92
14 changed files with 37 additions and 49 deletions

View File

@ -51,7 +51,7 @@ namespace Ocelot.UnitTests.LoadBalancer
{
var hostAndPort = await _leastConnection.Lease();
await Task.Delay(_random.Next(1, 100));
var response = _leastConnection.Release(hostAndPort.Data);
_leastConnection.Release(hostAndPort.Data);
}
[Fact]