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

CRM/Logging - Remove obsolete cache static clear in test #17269

Merged
merged 1 commit into from
May 10, 2020

Conversation

pfigel
Copy link
Contributor

@pfigel pfigel commented May 9, 2020

Overview

This simplifies CRM_Logging_SchemaTest::testLengthChange() and CRM_Logging_SchemaTest::testEnumChange() by removing a manual reset on a cache static and a second call to CRM_Logging_Schema::fixSchemaDifferences()

Before

Cache static is cleared by test and CRM_Logging_Schema::fixSchemaDifferences() is called twice for each schema change.

After

No cache manipulation in test code and CRM_Logging_Schema::fixSchemaDifferences() is called only once.

Comments

This was made obsolete by a40a5a4, which has added a cache flush to fixSchemaDifferences() via fixSchemaDifferencesForAll().

ping @totten

@civibot
Copy link

civibot bot commented May 9, 2020

(Standard links)

@civibot civibot bot added the master label May 9, 2020
@pfigel pfigel force-pushed the simplify-length-test branch from ee5b2ae to 2cf2852 Compare May 9, 2020 02:00
This simplifies CRM_Logging_SchemaTest::testLengthChange() and
CRM_Logging_SchemaTest::testEnumChange() by removing a manual reset on
a cache static and a second call to
CRM_Logging_Schema::fixSchemaDifferences(). This was made obsolete by
a40a5a4, which has added a cache flush
to fixSchemaDifferences() via fixSchemaDifferencesForAll().
@pfigel pfigel force-pushed the simplify-length-test branch from 2cf2852 to 70671c3 Compare May 9, 2020 02:22
@pfigel
Copy link
Contributor Author

pfigel commented May 9, 2020

Applied the change to CRM_Logging_SchemaTest::testEnumChange() as well.

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.

2 participants