Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 05e3ec4

Browse files
author
Geoff Kizer
committed
disable drain test variation for CurlHandler
1 parent b648d27 commit 05e3ec4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.ResponseDrain.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ protected static string GetResponseForContentMode(string content, ContentMode mo
4242
[InlineData(ContentMode.BytePerChunk)]
4343
public async Task GetAsync_DisposeBeforeReadingToEnd_DrainsRequestsAndReusesConnection(ContentMode mode)
4444
{
45-
if (IsWinHttpHandler && mode == ContentMode.BytePerChunk)
45+
if ((IsWinHttpHandler || IsCurlHandler) && mode == ContentMode.BytePerChunk)
4646
{
47-
// WinHttpHandler seems to only do a limited amount of draining when chunking is used;
48-
// I *think* it's not draining anything beyond the current chunk being processed.
49-
// So, these cases won't pass.
47+
// These handlers' behavior with multiple chunks is inconsistent, so disable the test.
5048
return;
5149
}
5250

0 commit comments

Comments
 (0)