Improve cleanup in DB library code tests
What does this MR do and why?
This fixes the issue we found in !135866 (comment 1634828425), by adding additional test cleanup
in after
and before
blocks.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- On current
master
executebundle exec rspec spec/lib/gitlab/database/tables_locker_spec.rb spec/lib/gitlab/database/tables_truncate_spec.rb
- On this branch, execute the same:
bundle exec rspec spec/lib/gitlab/database/tables_locker_spec.rb spec/lib/gitlab/database/tables_truncate_spec.rb
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.