iamhucong commented on code in PR #30379:
URL: https://github.com/apache/shardingsphere/pull/30379#discussion_r1510478862


##########
infra/util/src/test/java/org/apache/shardingsphere/infra/util/directory/ClasspathResourceDirectoryReaderTest.java:
##########
@@ -45,13 +45,13 @@ void assertReadTest() {
         assertThat(resourceNameList.size(), is(5));
         final String separator = File.separator;
         assertThat(resourceNameList, hasItems("yaml" + separator + 
"accepted-class.yaml", "yaml" + separator + "customized-obj.yaml", "yaml" + 
separator + "empty-config.yaml",
-                "yaml" + separator + "shortcuts-fixture.yaml", 
"yaml/fixture/fixture.yaml"));
+                "yaml" + separator + "shortcuts-fixture.yaml", "yaml" + 
separator + "fixture" + separator + "fixture.yaml"));
     }
     
     @Test
     void assertReadNestedTest() {
         List<String> resourceNameList = 
ClasspathResourceDirectoryReader.read("yaml/fixture").collect(Collectors.toList());
         assertThat(resourceNameList.size(), is(1));
-        assertThat(resourceNameList, hasItems("yaml/fixture/fixture.yaml"));
+        assertThat(resourceNameList, hasItems("yaml/fixture" + File.separator 
+ "fixture.yaml"));

Review Comment:
   @linghengqian It should be a path that can obtain resources through the 
ClassLoader#getResource method. Thank you for your fix.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to