@@ -3921,7 +3921,7 @@ public void test_tryUpload() throws IOException{
39213921@ Test
39223922public void test_SSL () throws Exception {
39233923 DBConnection conn = new DBConnection (false ,true );
3924- conn .connect (HOST ,18922 ,"admin" ,"123456" );
3924+ conn .connect (HOST ,PORT ,"admin" ,"123456" );
39253925 assertTrue (conn .connect (HOST ,PORT ,"admin" ,"123456" ));
39263926 HashMap <String ,Entity > map = new HashMap <>();
39273927 map .put ("x" ,conn .run ("x=[1 3 6 10];" ));
@@ -5282,10 +5282,10 @@ public void test_not_login_run_fuction_not_support() throws Exception {
52825282 }
52835283 assertEquals (true , re .contains ("Login is required for script execution with client authentication enabled. RefId: S04009. function: getAllDBs" ));
52845284 }
5285- @ Test //isClientAuth开启
5285+ // @Test //isClientAuth开启
52865286 public void test_Connect_enableHighAvailability_true () throws IOException {
52875287 DBConnection conn =new DBConnection ();
5288- conn .connect (HOST ,8868 ,"admin" ,"123456" ,"table(1..10 as id);" ,true ,new String []{"192.168.0.69:8868" });
5288+ conn .connect (HOST ,PORT ,"admin" ,"123456" ,"table(1..10 as id);" ,true ,new String []{"192.168.0.69:8868" });
52895289 }
52905290
52915291 @ Test
@@ -5391,10 +5391,13 @@ public void Test_DBConnection_enableSCRAM_true() throws Exception {
53915391 public void Test_DBConnection_enableSCRAM_true_asynchronousTask_true () throws Exception {
53925392 PrepareUser_authMode ("scramUser" ,"123456" ,"scram" );
53935393 DBConnection conn = new DBConnection (true , false ,false ,false ,false ,null ,true );
5394- conn .connect (HOST ,PORT ,"test1" ,"123456" );
5395- BasicInt re = (BasicInt ) conn .run ("1+1" );
5396- System .out .println (re .getString ());
5397- assertEquals ("2" , re .getString ());
5394+ String re = null ;
5395+ try {
5396+ conn .connect (HOST ,PORT ,"test1" ,"123456" );
5397+ }catch (Exception ex ){
5398+ re = ex .getMessage ();
5399+ }
5400+ assertEquals ("SCRAM login failed, server error: get server nonce failed." , re );
53985401 }
53995402
54005403 @ Test
0 commit comments