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

Remove db close in execution state sync tests #5465

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

zhangchiqing
Copy link
Member

The DB is closed and deleted by Cleanup method during TearDownTest call.

Calling DB.Close again would try to remove the lock or db folder which has already removed. This sometimes causing an endless loop because when badger can't find the files to delete, it will run a loop to try deleting them, and end up causing the tests to run longer and hit timeout eventually.

@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.50%. Comparing base (0766584) to head (b1d1af1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5465      +/-   ##
==========================================
+ Coverage   56.04%   57.50%   +1.46%     
==========================================
  Files        1026      848     -178     
  Lines      100134    84589   -15545     
==========================================
- Hits        56118    48643    -7475     
+ Misses      39712    32154    -7558     
+ Partials     4304     3792     -512     
Flag Coverage Δ
unittests 57.50% <ø> (+1.46%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

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

good catch. that for fixing

@zhangchiqing zhangchiqing force-pushed the leo/fix-execution-state-sync-tests branch from 9e1cd9c to b1d1af1 Compare February 28, 2024 16:26
@zhangchiqing zhangchiqing added this pull request to the merge queue Feb 28, 2024
Merged via the queue into master with commit bf6492c Feb 28, 2024
51 checks passed
@zhangchiqing zhangchiqing deleted the leo/fix-execution-state-sync-tests branch February 28, 2024 17:28
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.

4 participants