diff --git a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metadata/MetaUtilsTest.java b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metadata/MetaUtilsTest.java index e4827ffeedab..1a5e00ae491a 100644 --- a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metadata/MetaUtilsTest.java +++ b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metadata/MetaUtilsTest.java @@ -191,6 +191,19 @@ public void testParseDeadbandInfo() { props.putAll(sdtProps); Pair res = MetaUtils.parseDeadbandInfo(props); Assert.assertEquals("SDT", res.left); - Assert.assertEquals(sdtProps.toString(), res.right); + Assert.assertEquals(sdtProps, parseHashMap(res.right)); + } + + private static Map parseHashMap(String mapString) { + Map map = new HashMap<>(); + String content = mapString.substring(1, mapString.length() - 1); + String[] entries = content.split(", "); + for (String entry : entries) { + String[] keyValue = entry.split("="); + if (keyValue.length == 2) { + map.put(keyValue[0], keyValue[1]); + } + } + return map; } }