Skip to content

Commit 065bf96

Browse files
authored
Increase HTTP/2 connection expiration test's timeouts (#40015)
1 parent 50a999d commit 065bf96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ public async Task Http2_MultipleConnectionsEnabled_IdleConnectionTimeoutExpired_
21312131
const int MaxConcurrentStreams = 2;
21322132
using Http2LoopbackServer server = Http2LoopbackServer.CreateServer();
21332133
using SocketsHttpHandler handler = CreateHandler();
2134-
handler.PooledConnectionIdleTimeout = TimeSpan.FromSeconds(5);
2134+
handler.PooledConnectionIdleTimeout = TimeSpan.FromSeconds(10);
21352135
using (HttpClient client = CreateHttpClient(handler))
21362136
{
21372137
server.AllowMultipleConnections = true;
@@ -2142,7 +2142,7 @@ public async Task Http2_MultipleConnectionsEnabled_IdleConnectionTimeoutExpired_
21422142
Assert.Equal(MaxConcurrentStreams, acceptedStreamIds.Count);
21432143

21442144
List<Task<HttpResponseMessage>> connection1SendTasks = new List<Task<HttpResponseMessage>>();
2145-
Http2LoopbackConnection connection1 = await PrepareConnection(server, client, MaxConcurrentStreams, readTimeout: 10).ConfigureAwait(false);
2145+
Http2LoopbackConnection connection1 = await PrepareConnection(server, client, MaxConcurrentStreams, readTimeout: 15).ConfigureAwait(false);
21462146
AcquireAllStreamSlots(server, client, connection1SendTasks, MaxConcurrentStreams);
21472147
int handledRequests1 = (await HandleAllPendingRequests(connection1, MaxConcurrentStreams).ConfigureAwait(false)).Count;
21482148

0 commit comments

Comments
 (0)