rickchengx opened a new pull request, #12300:
URL: https://github.com/apache/dolphinscheduler/pull/12300

   <!--Thanks very much for contributing to Apache DolphinScheduler. Please 
review 
https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html
 before opening a pull request.-->
   
   ## Purpose of the pull request
   
   * close: #12296 
   
   ## Brief change log
   
   In some UT cases, static mocks are not closed after used. This may cause 
unexpected UT failure. The best practice is to handle it with 
try-with-resource, see the code below for an example:
   
   
https://github.com/apache/dolphinscheduler/blob/a973054950b3964d439597023e7f9471bbbf95fe/dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/utils/FileUtilsTest.java#L39-L43
   
   
   ## Verify this pull request
   
   manually tested
   


-- 
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