Skip to content

Conversation

@Prakhar-Agarwal-byte
Copy link
Contributor

Added test for replicateAdditionCallbackin the filesystem package.

This tests if the destination directory is indeed removed after the callback.

Fixes a part of #881

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@github-actions github-actions bot added the test label Aug 3, 2023
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (516df66) 14.86% compared to head (a01dfcb) 14.87%.
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1071      +/-   ##
==========================================
+ Coverage   14.86%   14.87%   +0.01%     
==========================================
  Files          86       86              
  Lines        8181     8181              
==========================================
+ Hits         1216     1217       +1     
+ Misses       6649     6648       -1     
  Partials      316      316              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

// Check if the destination directory is removed
_, err = os.Stat(destinationDir)
if err != nil {
if os.IsExist(err) {
Copy link
Member

Choose a reason for hiding this comment

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

if the err is something else, you might want to log that as well, no?

}

// Check if the destination directory is removed
_, err = os.Stat(destinationDir)
Copy link
Member

Choose a reason for hiding this comment

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

Is this check only for the destination directory? what about the files that were copied from source? Or the sub-directories that could have existed in the source?

@HarikrishnanBalagopal HarikrishnanBalagopal added the lfx-project https://lfx.linuxfoundation.org/tools/mentorship/ label Dec 13, 2023
@kmehant
Copy link
Member

kmehant commented Dec 14, 2023

@Prakhar-Agarwal-byte would you like to attend to @seshapad queries on this PR, so we can keep it moving? Thank you for your contributions!

@Prakhar-Agarwal-byte
Copy link
Contributor Author

@kmehant Yes, I will update the PR with the required changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lfx-project https://lfx.linuxfoundation.org/tools/mentorship/ test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants