Skip to content

Commit f8662f4

Browse files
committed
Fix build errors
1 parent 0fc02f2 commit f8662f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void Should_call_after_authorization_middleware()
255255
},
256256
};
257257

258-
var port = RandomPortFinder.GetRandomPort();
258+
var port = PortFinder.GetRandomPort();
259259

260260
var fileConfiguration = new FileConfiguration
261261
{
@@ -280,7 +280,7 @@ public void Should_call_after_authorization_middleware()
280280
};
281281

282282
this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, ""))
283-
.And(x => _steps.GivenThereIsAConfiguration(fileConfiguration, _configurationPath))
283+
.And(x => _steps.GivenThereIsAConfiguration(fileConfiguration))
284284
.And(x => _steps.GivenOcelotIsRunning(configuration))
285285
.When(x => _steps.WhenIGetUrlOnTheApiGateway("/"))
286286
.Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.OK))
@@ -391,7 +391,7 @@ public void Should_call_after_http_authentication_middleware()
391391
},
392392
};
393393

394-
var port = RandomPortFinder.GetRandomPort();
394+
var port = PortFinder.GetRandomPort();
395395

396396
var fileConfiguration = new FileConfiguration
397397
{
@@ -416,7 +416,7 @@ public void Should_call_after_http_authentication_middleware()
416416
};
417417

418418
this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, ""))
419-
.And(x => _steps.GivenThereIsAConfiguration(fileConfiguration, _configurationPath))
419+
.And(x => _steps.GivenThereIsAConfiguration(fileConfiguration))
420420
.And(x => _steps.GivenOcelotIsRunning(configuration))
421421
.When(x => _steps.WhenIGetUrlOnTheApiGateway("/"))
422422
.Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.OK))

0 commit comments

Comments
 (0)