getting acceptance tests working again

This commit is contained in:
Tom Gardham-Pallister
2017-11-09 09:02:41 +00:00
parent 0bc39fca53
commit b64b06e069
6 changed files with 67 additions and 48 deletions

View File

@ -72,6 +72,7 @@ namespace Ocelot.AcceptanceTests
UpstreamHttpMethod = new List<string> { "Get" },
ServiceName = serviceName,
LoadBalancer = "LeastConnection",
UseServiceDiscovery = true,
}
},
GlobalConfiguration = new FileGlobalConfiguration()
@ -99,8 +100,8 @@ namespace Ocelot.AcceptanceTests
private void ThenBothServicesCalledRealisticAmountOfTimes()
{
_counterOne.ShouldBe(25);
_counterTwo.ShouldBe(25);
_counterOne.ShouldBe(26);
_counterTwo.ShouldBe(24);
}
private void ThenTheTwoServicesShouldHaveBeenCalledTimes(int expected)