Skip to content

Commit 7bb7265

Browse files
authored
Fix test throwing from send (#82787)
1 parent 01fe448 commit 7bb7265

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,9 @@ public async Task ReservedFrameType_Throws()
285285
await using Http3LoopbackConnection connection = (Http3LoopbackConnection)await server.EstablishGenericConnectionAsync();
286286
await using Http3LoopbackStream stream = await connection.AcceptRequestStreamAsync();
287287

288-
await stream.SendFrameAsync(ReservedHttp2PriorityFrameId, new byte[8]);
289-
290288
QuicException ex = await AssertThrowsQuicExceptionAsync(QuicError.ConnectionAborted, async () =>
291289
{
290+
await stream.SendFrameAsync(ReservedHttp2PriorityFrameId, new byte[8]);
292291
await stream.HandleRequestAsync();
293292
await using Http3LoopbackStream stream2 = await connection.AcceptRequestStreamAsync();
294293
});

0 commit comments

Comments
 (0)