diff --git a/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs b/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs index 352dcd974..65ea66589 100644 --- a/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs +++ b/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs @@ -255,7 +255,7 @@ public void Should_call_after_authorization_middleware() }, }; - var port = RandomPortFinder.GetRandomPort(); + var port = PortFinder.GetRandomPort(); var fileConfiguration = new FileConfiguration { @@ -280,7 +280,7 @@ public void Should_call_after_authorization_middleware() }; this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, "")) - .And(x => _steps.GivenThereIsAConfiguration(fileConfiguration, _configurationPath)) + .And(x => _steps.GivenThereIsAConfiguration(fileConfiguration)) .And(x => _steps.GivenOcelotIsRunning(configuration)) .When(x => _steps.WhenIGetUrlOnTheApiGateway("/")) .Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.OK)) @@ -391,7 +391,7 @@ public void Should_call_after_http_authentication_middleware() }, }; - var port = RandomPortFinder.GetRandomPort(); + var port = PortFinder.GetRandomPort(); var fileConfiguration = new FileConfiguration { @@ -416,7 +416,7 @@ public void Should_call_after_http_authentication_middleware() }; this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, "")) - .And(x => _steps.GivenThereIsAConfiguration(fileConfiguration, _configurationPath)) + .And(x => _steps.GivenThereIsAConfiguration(fileConfiguration)) .And(x => _steps.GivenOcelotIsRunning(configuration)) .When(x => _steps.WhenIGetUrlOnTheApiGateway("/")) .Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.OK))