You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2024/01/09 09:39:00 UTC

(doris) branch master updated: [fix](case) fix unstable case by add def before variable define (#29082)

This is an automated email from the ASF dual-hosted git repository.

zhangstar333 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new bceecc952f2 [fix](case) fix unstable case by add def before variable define (#29082)
bceecc952f2 is described below

commit bceecc952f24249c6db583eb7ca20079314b3613
Author: Dongyang Li <he...@qq.com>
AuthorDate: Tue Jan 9 17:38:54 2024 +0800

    [fix](case) fix unstable case by add def before variable define (#29082)
    
    Co-authored-by: stephen <he...@qq.com>
---
 .../suites/external_table_p0/broker_load/test_broker_load_func.groovy | 4 ++--
 .../external_table_p0/hive/test_partial_update_broker_load.groovy     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/regression-test/suites/external_table_p0/broker_load/test_broker_load_func.groovy b/regression-test/suites/external_table_p0/broker_load/test_broker_load_func.groovy
index ff7c899e1a3..24daf9d5d9f 100644
--- a/regression-test/suites/external_table_p0/broker_load/test_broker_load_func.groovy
+++ b/regression-test/suites/external_table_p0/broker_load/test_broker_load_func.groovy
@@ -59,9 +59,9 @@ suite("test_broker_load_func", "p0,external,hive,external_docker,external_docker
             """
 
             def check_load_result = {checklabel, testTablex ->
-                max_try_milli_secs = 120000
+                def max_try_milli_secs = 120000
                 while(max_try_milli_secs) {
-                    result = sql "show load where label = '${checklabel}'"
+                    def result = sql "show load where label = '${checklabel}'"
                     if(result[0][2] == "FINISHED") {
                         //sql "sync"
                         def res = sql "select count(*) from ${database_name}.${testTablex};"
diff --git a/regression-test/suites/external_table_p0/hive/test_partial_update_broker_load.groovy b/regression-test/suites/external_table_p0/hive/test_partial_update_broker_load.groovy
index cf7243e5dda..c225ca02758 100644
--- a/regression-test/suites/external_table_p0/hive/test_partial_update_broker_load.groovy
+++ b/regression-test/suites/external_table_p0/hive/test_partial_update_broker_load.groovy
@@ -47,9 +47,9 @@ suite("test_primary_key_partial_update_broker_load", "p0,external,hive,external_
         }
 
         def wait_for_load_result = {checklabel, testTable ->
-            max_try_milli_secs = 10000
+            def max_try_milli_secs = 10000
             while(max_try_milli_secs) {
-                result = sql "show load where label = '${checklabel}'"
+                def result = sql "show load where label = '${checklabel}'"
                 if(result[0][2] == "FINISHED") {
                     break
                 } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org