Skip to content

Commit 97f5a04

Browse files
authored
Disable ReadAsync_CancelPendingValueTask_ThrowsCancellationException for Http1 (#72854)
1 parent b416ee7 commit 97f5a04

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamConformanceTests.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ public override Task ReadAsync_CancelPendingTask_ThrowsCancellationException(int
3131
return Task.CompletedTask;
3232
}
3333
#pragma warning restore xUnit1026
34+
35+
[Theory]
36+
[InlineData(0)]
37+
[InlineData(100)]
38+
[ActiveIssue("https://github.com/dotnet/runtime/issues/72586")]
39+
#pragma warning disable xUnit1026 // unused parameter
40+
public override Task ReadAsync_CancelPendingValueTask_ThrowsCancellationException(int cancellationDelay)
41+
{
42+
return Task.CompletedTask;
43+
}
44+
#pragma warning restore xUnit1026
3445
}
3546

3647
public sealed class Http1RawResponseStreamConformanceTests : ResponseConnectedStreamConformanceTests

0 commit comments

Comments
 (0)