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

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


The following commit(s) were added to refs/heads/master by this push:
     new ba773ff00 Update ExceptionManagerTest.java (#5005)
ba773ff00 is described below

commit ba773ff00d009e915a3556a505892dc843e49da5
Author: yijut2 <[email protected]>
AuthorDate: Thu Nov 30 04:07:50 2023 -0600

    Update ExceptionManagerTest.java (#5005)
    
    fix flaky test
---
 .../java/org/apache/linkis/common/exception/ExceptionManagerTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java
 
b/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java
index d45bebc12..839a34f85 100644
--- 
a/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java
+++ 
b/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java
@@ -21,6 +21,7 @@ import 
org.apache.linkis.common.errorcode.CommonErrorConstants;
 
 import java.util.HashMap;
 import java.util.Map;
+import java.util.TreeMap;
 
 import org.junit.jupiter.api.Test;
 
@@ -40,7 +41,7 @@ class ExceptionManagerTest {
                 + "null");
     assertEquals(errorException.getClass(), 
ExceptionManager.generateException(null).getClass());
     assertEquals(errorException.toString(), 
ExceptionManager.generateException(null).toString());
-    Map<String, Object> map = new HashMap<>();
+    Map<String, Object> map = new TreeMap<>();
     map.put("level", null);
     map.put("errCode", 1);
     map.put("desc", "test");


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

Reply via email to