Skip to content

fix: DB - Add mount to place test databases in unique folder #91

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

Closed
wants to merge 1 commit into from

Conversation

bryphe-coder
Copy link
Contributor

@kylecarbs and I were observing some flakes when running the tests backed by postgres. We noticed that the postgres image sets up a volume: https://github.com/docker-library/postgres/blob/a83005b407ee6d810413500d8a041c957fb10cf0/11/alpine/Dockerfile#L155 and will use that location on the host as the default.

This change generates a random tempdir for the test and mounts that folder to the tempdir - hopefully avoiding collisions between parallel test runs.

@bryphe-coder bryphe-coder self-assigned this Jan 30, 2022
@bryphe-coder
Copy link
Contributor Author

Better fix in #89 !

@kylecarbs kylecarbs deleted the bryphe/refactor/database-temp-dir branch March 23, 2022 16:25
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.

1 participant