diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs b/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs index 33e403afda88e..0114cd0dc55b3 100644 --- a/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs +++ b/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs @@ -679,7 +679,6 @@ public enum CancellationType } [ConditionalTheory(nameof(IsMsQuicSupported))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/56194")] [InlineData(CancellationType.Dispose)] [InlineData(CancellationType.CancellationToken)] public async Task ResponseCancellation_ServerReceivesCancellation(CancellationType type) @@ -701,7 +700,7 @@ public async Task ResponseCancellation_ServerReceivesCancellation(CancellationTy HttpRequestData request = await stream.ReadRequestDataAsync().ConfigureAwait(false); - int contentLength = 2*1024*1024; + int contentLength = 2 * 1024 * 1024; var headers = new List(); headers.Append(new HttpHeaderData("Content-Length", contentLength.ToString(CultureInfo.InvariantCulture))); @@ -715,7 +714,7 @@ public async Task ResponseCancellation_ServerReceivesCancellation(CancellationTy // We are asserting that PEER_RECEIVE_ABORTED would still arrive eventually var ex = await Assert.ThrowsAsync(() => SendDataForever(stream).WaitAsync(TimeSpan.FromSeconds(10))); - Assert.Equal((type == CancellationType.CancellationToken ? 268 : 0xffffffff), ex.ErrorCode); + Assert.Equal(268, ex.ErrorCode); serverDone.Release(); });