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

dataroaring 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 1ef79d48b40 [fix](ut) Fix `ShowViewStmtTest` not stable run in cloud 
mode (#36763)
1ef79d48b40 is described below

commit 1ef79d48b40b5420a47cfbac377b0bb109d29878
Author: deardeng <[email protected]>
AuthorDate: Tue Jun 25 12:19:50 2024 +0800

    [fix](ut) Fix `ShowViewStmtTest` not stable run in cloud mode (#36763)
    
    The previous impl. depends on the order of views which may not be true
    when enable_advanced_id is true in fe.conf.
---
 .../src/test/java/org/apache/doris/analysis/ShowViewStmtTest.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/test/java/org/apache/doris/analysis/ShowViewStmtTest.java 
b/fe/fe-core/src/test/java/org/apache/doris/analysis/ShowViewStmtTest.java
index 8934aedc53f..21e0ef36987 100644
--- a/fe/fe-core/src/test/java/org/apache/doris/analysis/ShowViewStmtTest.java
+++ b/fe/fe-core/src/test/java/org/apache/doris/analysis/ShowViewStmtTest.java
@@ -34,6 +34,7 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 
 import java.io.StringReader;
+import java.util.Arrays;
 import java.util.List;
 import java.util.Set;
 import java.util.UUID;
@@ -229,10 +230,11 @@ public class ShowViewStmtTest {
         ShowResultSet resultSet = executor.execute();
         System.out.println(resultSet.getResultRows());
         Assert.assertEquals(2, resultSet.getResultRows().size());
+        List<String> views = Arrays.asList("view4", "view5");
         Assert.assertTrue(resultSet.next());
-        Assert.assertEquals("view4", resultSet.getString(0));
+        Assert.assertTrue(views.contains(resultSet.getString(0)));
         Assert.assertTrue(resultSet.next());
-        Assert.assertEquals("view5", resultSet.getString(0));
+        Assert.assertTrue(views.contains(resultSet.getString(0)));
 
         dorisAssert.dropView("view4")
                    .dropView("view5");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to