Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #7444] Fix testCalculateFileSizeInPath test can not rerun in same environment #7445

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

RongtongJin
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #7444

Brief Description

Fix testCalculateFileSizeInPath test can not rerun in same environment

How Did You Test This Change?

@@ -271,8 +271,19 @@ public void testCalculateFileSizeInPath() throws Exception {

assertEquals(1313 * 4, UtilAll.calculateFileSizeInPath(baseFile));

// clear all file
baseFile.deleteOnExit();
deleteFolder(baseFile);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果某次fail了,是不是就无法执行到删除逻辑。放在test开始前,每次执行先删除会不会更好

@codecov-commenter
Copy link

Codecov Report

Merging #7445 (4991710) into develop (4acb43e) will increase coverage by 0.02%.
Report is 1 commits behind head on develop.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             develop    #7445      +/-   ##
=============================================
+ Coverage      42.68%   42.71%   +0.02%     
- Complexity      9477     9487      +10     
=============================================
  Files           1150     1150              
  Lines          82814    82825      +11     
  Branches       10768    10771       +3     
=============================================
+ Hits           35346    35375      +29     
+ Misses         43045    43029      -16     
+ Partials        4423     4421       -2     
Files Coverage Δ
...va/org/apache/rocketmq/common/message/Message.java 48.45% <0.00%> (-6.20%) ⬇️

... and 19 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@joeCarf joeCarf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] testCalculateFileSizeInPath test can not rerun in same environment
4 participants