use random port generator on tests from master

This commit is contained in:
TomPallister
2020-03-11 20:09:36 +00:00
parent c75227d5b8
commit 36064b13d0
2 changed files with 17 additions and 11 deletions

View File

@ -25,7 +25,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_when_using_http_one()
{
const int port = 53219;
var port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -63,7 +63,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_when_using_http_one_point_one()
{
const int port = 53279;
var port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -101,7 +101,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_when_using_http_two_point_zero()
{
const int port = 53675;
var port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -143,7 +143,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_500_when_using_http_one_to_talk_to_server_running_http_two()
{
const int port = 53677;
var port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -184,7 +184,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_when_using_http_two_to_talk_to_server_running_http_one_point_one()
{
const int port = 53679;
var port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{