Skip to content

Commit 0f25a24

Browse files
committed
Fix for httpbin returning 503, out of our control
1 parent 8c9b352 commit 0f25a24

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)