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 b477f57ae3c3bd..d910804d7de053 100644 --- a/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs +++ b/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs @@ -285,10 +285,9 @@ public async Task ReservedFrameType_Throws() await using Http3LoopbackConnection connection = (Http3LoopbackConnection)await server.EstablishGenericConnectionAsync(); await using Http3LoopbackStream stream = await connection.AcceptRequestStreamAsync(); - await stream.SendFrameAsync(ReservedHttp2PriorityFrameId, new byte[8]); - QuicException ex = await AssertThrowsQuicExceptionAsync(QuicError.ConnectionAborted, async () => { + await stream.SendFrameAsync(ReservedHttp2PriorityFrameId, new byte[8]); await stream.HandleRequestAsync(); await using Http3LoopbackStream stream2 = await connection.AcceptRequestStreamAsync(); });