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

CiviUnitTestCase - During teardown, ensure that we cleanup locks #25856

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

totten
Copy link
Member

@totten totten commented Mar 17, 2023

Overview

Off-shoot from test-interaction observed in #25673

Before

If a test acquires a lock and fails to release, then... we just continue holding the lock... indefinitely.

After

  • Locks are released at end
  • If there are any unreleased locks, the leaky test fails.

Comments

I have no idea what to expect in terms of results. Failures, perhaps?

@civibot
Copy link

civibot bot commented Mar 17, 2023

(Standard links)

@civibot civibot bot added the master label Mar 17, 2023
@totten totten changed the title CiviUnitTestCase - During cleanup, ensure that we cleanup locks CiviUnitTestCase - During teardown, ensure that we cleanup locks Mar 17, 2023
@totten
Copy link
Member Author

totten commented Mar 17, 2023

civibot, test this please

@totten totten merged commit a92908a into civicrm:master Mar 17, 2023
@totten totten deleted the test-release-locks branch March 17, 2023 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant