From 0f25a245c1807adb9178cde0130609f4068e64d2 Mon Sep 17 00:00:00 2001 From: ManickaP Date: Thu, 4 Jun 2026 18:18:14 +0200 Subject: [PATCH] Fix for httpbin returning 503, out of our control --- .../tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs index 49b2a61a1fd110..e156ddd03420c8 100644 --- a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs +++ b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs @@ -1290,7 +1290,7 @@ public async Task GetAsync_SetAutomaticDecompression_ContentDecompressed_Deflate try { using HttpResponseMessage response = await client.GetAsync(uri); - if (response.StatusCode is HttpStatusCode.GatewayTimeout or HttpStatusCode.BadGateway) + if (response.StatusCode is HttpStatusCode.GatewayTimeout or HttpStatusCode.BadGateway or HttpStatusCode.ServiceUnavailable) { // Ignore the erroneous status code, the test depends on an external server that is out of our control. _output.WriteLine(response.ToString());