Skip to content

Commit cbb21a1

Browse files
committed
#603 return 502 on HttpRequestException
1 parent 8985495 commit cbb21a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Ocelot.AcceptanceTests/ReturnsErrorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void should_return_bad_gateway_error_if_downstream_service_doesnt_respond
3535
new FileHostAndPort
3636
{
3737
Host = "localhost",
38-
Port = 53876,
38+
Port = 53877,
3939
},
4040
},
4141
DownstreamScheme = "http",

test/Ocelot.AcceptanceTests/SslTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void should_not_dangerous_accept_any_server_certificate_validator()
8989
.And(x => _steps.GivenThereIsAConfiguration(configuration))
9090
.And(x => _steps.GivenOcelotIsRunning())
9191
.When(x => _steps.WhenIGetUrlOnTheApiGateway("/"))
92-
.Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.InternalServerError))
92+
.Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.BadGateway))
9393
.BDDfy();
9494
}
9595

0 commit comments

Comments
 (0)