diff --git a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs index 1d2830ef845dfb..450edaab12e377 100644 --- a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs +++ b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs @@ -2345,13 +2345,10 @@ public enum HeaderType Cookie } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))] public async Task LargeUriAndHeaders_Works() { - int length = - IsWinHttpHandler ? 65_000 : - PlatformDetection.IsBrowser ? 4_000 : - 10_000_000; + int length = IsWinHttpHandler ? 65_000 : 10_000_000; string longPath = "/" + new string('X', length); string longHeaderName = new string('Y', length);