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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new e5000c21ef5 branch-2.1: [regression-test](fix) 
test_audit_log_behavior.groovy case bug #46588 (#46702)
e5000c21ef5 is described below

commit e5000c21ef5e58bf4c19d6cc4758a244a378d322
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jan 10 10:46:43 2025 +0800

    branch-2.1: [regression-test](fix) test_audit_log_behavior.groovy case bug 
#46588 (#46702)
    
    Cherry-picked from #46588
    
    Co-authored-by: shuke <sh...@selectdb.com>
---
 regression-test/suites/audit/test_audit_log_behavior.groovy | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/regression-test/suites/audit/test_audit_log_behavior.groovy 
b/regression-test/suites/audit/test_audit_log_behavior.groovy
index ec01870750a..6b6e7cf5871 100644
--- a/regression-test/suites/audit/test_audit_log_behavior.groovy
+++ b/regression-test/suites/audit/test_audit_log_behavior.groovy
@@ -93,14 +93,15 @@ suite("test_audit_log_behavior") {
         for (int i = 0; i < cnt; i++) {
             def tuple2 = sqls.get(i)
             def retry = 180
-            def res = sql "select stmt from __internal_schema.audit_log where 
stmt like 'insert%3F6B9A_${i}%' order by time asc limit 1"
+            def query = "select stmt from __internal_schema.audit_log where 
stmt like 'insert%3F6B9A_${i}%' order by time asc limit 1"
+            def res = sql "${query}"
             while (res.isEmpty()) {
                 if (retry-- < 0) {
                     logger.warn("It has retried a few but still failed, you 
need to check it")
                     return
                 }
                 sleep(1000)
-                res = sql "select stmt from __internal_schema.audit_log where 
stmt like '%3F6B9A_${i}%' order by time asc limit 1"
+                res = sql "${query}"
             }
             assertEquals(res[0][0].toString(), tuple2[1].toString())
         }


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

Reply via email to