@@ -66,7 +66,7 @@ def aurora_utility(self):
6666 def props (self ):
6767 p : Properties = Properties ({
6868 "plugins" : "failover" ,
69- "socket_timeout" : 30 ,
69+ "socket_timeout" : 10 ,
7070 "connect_timeout" : 10 ,
7171 "monitoring-connect_timeout" : 5 ,
7272 "monitoring-socket_timeout" : 5 ,
@@ -329,28 +329,3 @@ def test_writer_failover_in_idle_connections(
329329 # Ensure that all idle connections are closed.
330330 for idle_connection in idle_connections :
331331 assert idle_connection .is_closed is True
332-
333- @enable_on_features ([TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED ])
334- def test_failover__socket_timeout (
335- self ,
336- test_driver : TestDriver ,
337- test_environment : TestEnvironment ,
338- proxied_props ,
339- conn_utils ,
340- aurora_utility ):
341- target_driver_connect = DriverHelper .get_connect_func (test_driver )
342- reader : TestInstanceInfo = test_environment .get_proxy_instances ()[1 ]
343- writer_id : str = test_environment .get_proxy_writer ().get_instance_id ()
344-
345- WrapperProperties .PLUGINS .set (proxied_props , "failover" )
346- WrapperProperties .SOCKET_TIMEOUT_SEC .set (proxied_props , 3 )
347- with AwsWrapperConnection .connect (
348- target_driver_connect ,
349- ** conn_utils .get_proxy_connect_params (reader .get_host ()),
350- ** proxied_props ) as aws_conn :
351- ProxyHelper .disable_connectivity (reader .get_instance_id ())
352- aurora_utility .assert_first_query_throws (aws_conn , FailoverSuccessError )
353-
354- current_connection_id = aurora_utility .query_instance_id (aws_conn )
355- assert writer_id == current_connection_id
356- assert aurora_utility .is_db_instance_writer (current_connection_id ) is True
0 commit comments