From: Radek Zikmund <32671551+rzikm@users.noreply.github.com> Date: Wed, 27 Jul 2022 16:00:59 +0000 (+0200) Subject: Disable ReadAsync_CancelPendingValueTask_ThrowsCancellationException for Http1 (... X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~7503 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97f5a04928a0a0b7e4b5259b1e8913d4b52eeb4a;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Disable ReadAsync_CancelPendingValueTask_ThrowsCancellationException for Http1 (#72854) --- diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamConformanceTests.cs b/src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamConformanceTests.cs index db47478..ef221a2 100644 --- a/src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamConformanceTests.cs +++ b/src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamConformanceTests.cs @@ -31,6 +31,17 @@ namespace System.Net.Http.Functional.Tests return Task.CompletedTask; } #pragma warning restore xUnit1026 + + [Theory] + [InlineData(0)] + [InlineData(100)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/72586")] +#pragma warning disable xUnit1026 // unused parameter + public override Task ReadAsync_CancelPendingValueTask_ThrowsCancellationException(int cancellationDelay) + { + return Task.CompletedTask; + } +#pragma warning restore xUnit1026 } public sealed class Http1RawResponseStreamConformanceTests : ResponseConnectedStreamConformanceTests