Skip to content

Commit de4440c

Browse files
authored
Disable LargeUriAndHeaders_Works test on browser (#117946)
* Disable LargeUriAndHeaders_Works test on browser * Make copilot happy
1 parent c6bf4d5 commit de4440c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,13 +2345,10 @@ public enum HeaderType
23452345
Cookie
23462346
}
23472347

2348-
[Fact]
2348+
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBrowser))]
23492349
public async Task LargeUriAndHeaders_Works()
23502350
{
2351-
int length =
2352-
IsWinHttpHandler ? 65_000 :
2353-
PlatformDetection.IsBrowser ? 4_000 :
2354-
10_000_000;
2351+
int length = IsWinHttpHandler ? 65_000 : 10_000_000;
23552352

23562353
string longPath = "/" + new string('X', length);
23572354
string longHeaderName = new string('Y', length);

0 commit comments

Comments
 (0)