@@ -455,10 +455,10 @@ public void Test_getConnection_enableHighAvailability_true_site_not_null_all_not
455455 System .out .println (count2 );
456456 System .out .println (count3 );
457457 System .out .println (count4 );
458- org .junit .Assert .assertEquals (true , count1 >80 );
459- org .junit .Assert .assertEquals (true , count2 >80 );
460- org .junit .Assert .assertEquals (true , count3 >80 );
461- org .junit .Assert .assertEquals (true , count4 >80 );
458+ org .junit .Assert .assertEquals (true , count1 >70 );
459+ org .junit .Assert .assertEquals (true , count2 >70 );
460+ org .junit .Assert .assertEquals (true , count3 >70 );
461+ org .junit .Assert .assertEquals (true , count4 >70 );
462462
463463 }
464464
@@ -526,22 +526,22 @@ public void Test_getConnection_enableHighAvailability_true_6() throws SQLExcepti
526526 }
527527
528528 //@Test(timeout = 120000)
529- // public void Test_getConnection_enableHighAvailability_true_7() throws SQLException, ClassNotFoundException, IOException {
530- // String JDBC_DRIVER = "com.dolphindb.jdbc.Driver";
531- // int count1 = 0;
532- // int count2 = 0;
533- // int count3 = 0;
534- // int count4 = 0;
535- // List<DBConnection> list = new ArrayList<>();
536- // for (int i = 0; i < 460; i++) {
537- // DBConnection connection = new DBConnection();
538- // connection.connect("192.168.1.167", 18921 , "admin", "123456",true );
539- // list.add(connection);
540- //
541- // }
542- // DBConnection connection1 = new DBConnection();
543- // connection1.connect("192.168.1.167", 18921 , "admin", "123456",true );
544-
545- // connection1.run("sleep(1000000)");
546- // }
529+ public void Test_getConnection_enableHighAvailability_true_7 () throws SQLException , ClassNotFoundException , IOException {
530+ String JDBC_DRIVER = "com.dolphindb.jdbc.Driver" ;
531+ int count1 = 0 ;
532+ int count2 = 0 ;
533+ int count3 = 0 ;
534+ int count4 = 0 ;
535+ List <DBConnection > list = new ArrayList <>();
536+ for (int i = 0 ; i < 460 ; i ++) {
537+ DBConnection connection = new DBConnection ();
538+ connection .connect ("192.168.1.167" , 8902 , "admin" , "123456" ,false );
539+ list .add (connection );
540+
541+ }
542+ DBConnection connection1 = new DBConnection ();
543+ connection1 .connect ("192.168.1.167" , 8902 , "admin" , "123456" ,false );
544+
545+ connection1 .run ("sleep(1000000)" );
546+ }
547547}
0 commit comments