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

Rework app/db/controller tests to minimise app recreation #2012

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

knolleary
Copy link
Member

@knolleary knolleary commented Apr 17, 2023

Part of #2004
Rework app/db/controller tests to minimise app recreation.

Running locally, these changes reduce the time taken to run these tests from around 40s to 10s.

@knolleary
Copy link
Member Author

Hmm, genuine test failure with the postgres tests. Looks like its trying to reinitialise the forge app when we haven't closed it off properly. We don't see that with sqlite because it uses ephemeral in-memory databases.

@knolleary
Copy link
Member Author

Fix pushed

Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

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

Good stuff 👌

@Steve-Mcl Steve-Mcl merged commit 42abcca into main Apr 17, 2023
@Steve-Mcl Steve-Mcl deleted the 2004-rework-controller-tests branch April 17, 2023 14:28
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.

None yet

2 participants