diff --git a/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PathPatternTreeTest.java b/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PathPatternTreeTest.java index c8afb5216507..d4319d86f94c 100644 --- a/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PathPatternTreeTest.java +++ b/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PathPatternTreeTest.java @@ -251,10 +251,13 @@ private void checkPathPatternTree( Assert.assertEquals( compressedDevicePaths.stream() - .map(PartialPath::getIDeviceID) + .map(PartialPath::getFullPath) .sorted() .collect(Collectors.toList()), - patternTree.getAllDevicePatterns().stream().sorted().collect(Collectors.toList())); + patternTree.getAllDevicePatterns().stream() + .map(Object::toString) + .sorted() + .collect(Collectors.toList())); Assert.assertEquals( compressedDevicePaths.stream().sorted().collect(Collectors.toList()),