diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs b/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs index 2577094cb52b4e..e375da42d5af8b 100644 --- a/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs +++ b/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs @@ -1702,11 +1702,16 @@ from lineFolds in BoolValues private delegate int StreamReadSpanDelegate(Span buffer); - [Theory] + [ConditionalTheory] [MemberData(nameof(TripleBoolValues))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/77474", TestPlatforms.Android)] public async Task LargeHeaders_TrickledOverTime_ProcessedEfficiently(bool trailingHeaders, bool async, bool lineFolds) { + if (PlatformDetection.IsAndroid && PlatformDetection.Is32BitProcess) + { + // https://github.com/dotnet/runtime/issues/77474 + throw new SkipTestException("This test runs out of memory on 32-bit Android devices"); + } + Memory responsePrefix = Encoding.ASCII.GetBytes(trailingHeaders ? "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\n\r\n0\r\nLong-Header: " : "HTTP/1.1 200 OK\r\nContent-Length: 0\r\nLong-Header: ");