Skip to content

Commit

Permalink
Update ExceptionManagerTest.java (#5005)
Browse files Browse the repository at this point in the history
fix flaky test
  • Loading branch information
yijut2 authored Nov 30, 2023
1 parent 2347ae8 commit ba773ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

import org.junit.jupiter.api.Test;

Expand All @@ -40,7 +41,7 @@ void testGenerateException() {
+ "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");
Expand Down

0 comments on commit ba773ff

Please sign in to comment.