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

Extract test helper function to truncate all tables #10286

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

malikdiarra
Copy link
Contributor

Multiple persistence test truncates tables when they need to reset the
state of the DB. All subclasses of BaseDatabaseConfigPersistenceTest
now relies on truncateAllTables to do so.

What

This removes sum duplicate code in the test classes of the persistence layer

How

A new function is created in the base class that all the test classes inherit.

Multiple persistence test truncates tables when they need to reset the
state of the DB. All subclasses of `BaseDatabaseConfigPersistenceTest`
now relies on `truncateAllTables` to do so.
@CLAassistant
Copy link

CLAassistant commented Feb 11, 2022

CLA assistant check
All committers have signed the CLA.

@malikdiarra malikdiarra merged commit 579ace4 into master Feb 14, 2022
@malikdiarra malikdiarra deleted the malik/db-improvement branch February 14, 2022 21:18
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