Oliverwqcwrw commented on code in PR #4637:
URL: https://github.com/apache/rocketmq/pull/4637#discussion_r961251538
##########
acl/src/test/java/org/apache/rocketmq/acl/plain/PlainPermissionManagerTest.java:
##########
@@ -247,7 +259,7 @@ public void multiFilePathTest() {
@Test
public void testWatch() throws IOException, IllegalAccessException,
InterruptedException {
- File file = new File("src/test/resources");
+ File file = new File(PATH);
System.setProperty("rocketmq.home.dir", file.getAbsolutePath());
String fileName = System.getProperty("rocketmq.home.dir") +
File.separator + "/conf/acl/plain_acl_test.yml";
Review Comment:
Thank you for your advice
I have changed to it as follows
`private static final String PATH =
PlainPermissionManagerTest.class.getResource(File.separator).getFile();`
--
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]