You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/04/08 05:56:21 UTC

[GitHub] [incubator-hudi] yanghua commented on a change in pull request #1449: [WIP][HUDI-698]Add unit test for CleansCommand

yanghua commented on a change in pull request #1449: [WIP][HUDI-698]Add unit test for CleansCommand
URL: https://github.com/apache/incubator-hudi/pull/1449#discussion_r405274332
 
 

 ##########
 File path: hudi-cli/src/test/java/org/apache/hudi/cli/commands/TestCleansCommand.java
 ##########
 @@ -56,8 +58,16 @@ public void init() throws IOException {
 
     String tableName = "test_table";
     tablePath = basePath + File.separator + tableName;
-    propsFilePath = this.getClass().getClassLoader().getResource("clean.properties").getPath();
-
+    propsFilePath = TestCleansCommand.class.getClassLoader().getResource("clean.properties").getPath();
+    if (propsFilePath == null) {
+      System.out.println("-------------------");
 
 Review comment:
   Please make sure we do not use STDOUT in the test case.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services