From 9bee3af4ef848d276a9e882f9265c259731f324a Mon Sep 17 00:00:00 2001 From: Raman Maksimchuk Date: Sun, 7 Apr 2024 16:02:31 +0300 Subject: [PATCH] Fix build errors --- test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs b/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs index 352dcd974d..65ea66589a 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))