Skip to content

Commit 055beba

Browse files
authored
[HTTP] httpbin sometimes returns 503 (#128999)
Fix for httpbin returning 503, which is out of our control. Based on Kusto, started 28.5., seen in #128940
1 parent 8df86ac commit 055beba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ public async Task GetAsync_SetAutomaticDecompression_ContentDecompressed_Deflate
12901290
try
12911291
{
12921292
using HttpResponseMessage response = await client.GetAsync(uri);
1293-
if (response.StatusCode is HttpStatusCode.GatewayTimeout or HttpStatusCode.BadGateway)
1293+
if (response.StatusCode is HttpStatusCode.GatewayTimeout or HttpStatusCode.BadGateway or HttpStatusCode.ServiceUnavailable)
12941294
{
12951295
// Ignore the erroneous status code, the test depends on an external server that is out of our control.
12961296
_output.WriteLine(response.ToString());

0 commit comments

Comments
 (0)