Skip to content

PHPLIB-693: Remove early returns for failed tests from tearDown methods #1071

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

Merged
merged 1 commit into from
May 19, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented May 17, 2023

Fix PHPLIB-693

Ensure parent::tearDown is always called. The call to disableFailPoints in FunctionalTestCase::tearDown was not necessary since fail points are not used in the modified test classes.

@GromNaN GromNaN changed the title PHPLIB-693 Remove early returns for failed tests from tearDown methods PHPLIB-693: Remove early returns for failed tests from tearDown methods May 17, 2023
@GromNaN GromNaN requested review from alcaeus and jmikola May 19, 2023 08:56
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

LGTM. Test failures are unrelated.

@alcaeus alcaeus merged commit 339b8a2 into mongodb:master May 19, 2023
@GromNaN GromNaN deleted the PHPLIB-693 branch May 19, 2023 11:29
if ($this->hasFailed()) {
return;
if (! $this->hasFailed()) {
$this->dropCollection();
Copy link
Member

Choose a reason for hiding this comment

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

Noted that this will likely change in #1075 but it's fine for this PR.

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.

3 participants