Skip to content

Commit 30fb87c

Browse files
authored
Fix StreamPool_MultipleStreamsConcurrent_StreamsReturnedToPool (#57473)
Wait for streams to complete before triggering a pool update since they won't be eligible for reuse if they haven't completed. For #39477
1 parent 8a9be3d commit 30fb87c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/Http2/Http2ConnectionTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ await ExpectAsync(Http2FrameType.DATA,
474474
withFlags: (byte)Http2DataFrameFlags.END_STREAM,
475475
withStreamId: 3);
476476

477+
await WaitForAllStreamsAsync().DefaultTimeout();
478+
477479
// TriggerTick will trigger the stream to be returned to the pool so we can assert it
478480
TriggerTick();
479481

0 commit comments

Comments
 (0)