Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Nov 4, 2024
1 parent 0fc02f2 commit f8662f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void Should_call_after_authorization_middleware()
},
};

var port = RandomPortFinder.GetRandomPort();
var port = PortFinder.GetRandomPort();

var fileConfiguration = new FileConfiguration
{
Expand All @@ -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))
Expand Down Expand Up @@ -391,7 +391,7 @@ public void Should_call_after_http_authentication_middleware()
},
};

var port = RandomPortFinder.GetRandomPort();
var port = PortFinder.GetRandomPort();

var fileConfiguration = new FileConfiguration
{
Expand All @@ -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))
Expand Down

0 comments on commit f8662f4

Please sign in to comment.