@@ -20,10 +20,10 @@ private ClientHelper CreateClient()
2020 return ClientHelper . CreateClient ( _server . HttpPort , new Version ( 1 , 1 ) , system : _systemFixture . System ) ;
2121 }
2222
23- [ Fact ( Timeout = 20000 ) ]
23+ [ Fact ( Timeout = 60000 ) ]
2424 public async Task Connection_should_allow_sequential_requests_with_keep_alive ( )
2525 {
26- using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 10 ) ) ;
26+ using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 30 ) ) ;
2727 await using var helper = CreateClient ( ) ;
2828
2929 // First request with explicit Connection: Keep-Alive
@@ -41,10 +41,10 @@ public async Task Connection_should_allow_sequential_requests_with_keep_alive()
4141 Assert . Equal ( "keep-alive" , body2 ) ;
4242 }
4343
44- [ Fact ( Timeout = 20000 ) ]
44+ [ Fact ( Timeout = 60000 ) ]
4545 public async Task Connection_should_have_close_header_in_response ( )
4646 {
47- using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 10 ) ) ;
47+ using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 30 ) ) ;
4848 await using var helper = CreateClient ( ) ;
4949
5050 var request = new HttpRequestMessage ( HttpMethod . Get , "/conn/close" ) ;
@@ -59,10 +59,10 @@ public async Task Connection_should_have_close_header_in_response()
5959 "Response should contain Connection: close header" ) ;
6060 }
6161
62- [ Fact ( Timeout = 20000 ) ]
62+ [ Fact ( Timeout = 60000 ) ]
6363 public async Task Connection_should_default_to_keep_alive_without_connection_header ( )
6464 {
65- using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 10 ) ) ;
65+ using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 30 ) ) ;
6666 await using var helper = CreateClient ( ) ;
6767
6868 // First request — no explicit Connection header from server
@@ -80,24 +80,24 @@ public async Task Connection_should_default_to_keep_alive_without_connection_hea
8080 Assert . Equal ( "default" , body2 ) ;
8181 }
8282
83- [ Fact ( Timeout = 20000 ) ]
83+ [ Fact ( Timeout = 60000 ) ]
8484 public async Task Connection_101_switching_protocols_must_not_be_reusable_for_http ( )
8585 {
8686 // 101 Switching Protocols transitions the connection away from HTTP.
8787 // The client cannot complete a normal HTTP exchange over a switched connection,
8888 // so we expect the request to fail (timeout or exception) rather than return 101.
89- using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 10 ) ) ;
89+ using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 30 ) ) ;
9090 await using var helper = CreateClient ( ) ;
9191
9292 var request = new HttpRequestMessage ( HttpMethod . Get , "/conn/upgrade-101" ) ;
9393 await Assert . ThrowsAnyAsync < OperationCanceledException > (
9494 async ( ) => await helper . Client . SendAsync ( request , cts . Token ) ) ;
9595 }
9696
97- [ Fact ( Timeout = 20000 ) ]
97+ [ Fact ( Timeout = 60000 ) ]
9898 public async Task Connection_should_prove_reuse_across_different_endpoints ( )
9999 {
100- using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 10 ) ) ;
100+ using var cts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 30 ) ) ;
101101 await using var helper = CreateClient ( ) ;
102102
103103 // Send multiple requests to different endpoints on the same client
0 commit comments