From 0285d4681e47c5c20803f5d745ea489b373894ad Mon Sep 17 00:00:00 2001 From: Alexander Nikolaev Date: Tue, 28 Jul 2020 17:01:43 +0200 Subject: [PATCH] Increase HTTP/2 connection expiration test's timeouts --- .../tests/FunctionalTests/SocketsHttpHandlerTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs b/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs index 3a4aef661e415..ddaafdaf471b3 100644 --- a/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs +++ b/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs @@ -2065,7 +2065,7 @@ public async Task Http2_MultipleConnectionsEnabled_IdleConnectionTimeoutExpired_ const int MaxConcurrentStreams = 2; using Http2LoopbackServer server = Http2LoopbackServer.CreateServer(); using SocketsHttpHandler handler = CreateHandler(); - handler.PooledConnectionIdleTimeout = TimeSpan.FromSeconds(5); + handler.PooledConnectionIdleTimeout = TimeSpan.FromSeconds(10); using (HttpClient client = CreateHttpClient(handler)) { server.AllowMultipleConnections = true; @@ -2076,7 +2076,7 @@ public async Task Http2_MultipleConnectionsEnabled_IdleConnectionTimeoutExpired_ Assert.Equal(MaxConcurrentStreams, acceptedStreamIds.Count); List> connection1SendTasks = new List>(); - Http2LoopbackConnection connection1 = await PrepareConnection(server, client, MaxConcurrentStreams, readTimeout: 10).ConfigureAwait(false); + Http2LoopbackConnection connection1 = await PrepareConnection(server, client, MaxConcurrentStreams, readTimeout: 15).ConfigureAwait(false); AcquireAllStreamSlots(server, client, connection1SendTasks, MaxConcurrentStreams); int handledRequests1 = (await HandleAllPendingRequests(connection1, MaxConcurrentStreams).ConfigureAwait(false)).Count;