This repository was archived by the owner on Jul 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Titanium.Web.Proxy.IntegrationTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments