Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit d195f34

Browse files
committed
Update timeout for test
1 parent 3521104 commit d195f34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Titanium.Web.Proxy.IntegrationTests/NestedProxyTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public async Task Nested_Proxy_Farm_Should_Not_Hang()
9494
var proxies2 = new List<ProxyServer>();
9595

9696
//create a level 2 upstream proxy farm
97-
for (int i = 0; i < 10; i++)
97+
for (int i = 0; i < 5; i++)
9898
{
9999
var proxy = testSuite.GetProxy();
100100
proxy.ProxyBasicAuthenticateFunc += (_, _, _) =>
@@ -108,7 +108,7 @@ public async Task Nested_Proxy_Farm_Should_Not_Hang()
108108
var proxies1 = new List<ProxyServer>();
109109

110110
//create a level 1 upstream proxy farm
111-
for (int i = 0; i < 10; i++)
111+
for (int i = 0; i < 5; i++)
112112
{
113113
var proxy1 = testSuite.GetProxy();
114114
var proxy2 = proxies2[rnd.Next() % proxies2.Count];
@@ -154,7 +154,7 @@ public async Task Nested_Proxy_Farm_Should_Not_Hang()
154154
{
155155
var proxy = proxies1[rnd.Next() % proxies1.Count];
156156
using var client = testSuite.GetClient(proxy);
157-
157+
client.Timeout = TimeSpan.FromMinutes(10);
158158
var response = await client.PostAsync(new Uri(server.ListeningHttpsUrl),
159159
new StringContent("hello server. I am a client."));
160160

0 commit comments

Comments
 (0)