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

Clean up database test fixtures #37

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Conversation

karlhigley
Copy link
Collaborator

In order to work seamlessly with a local database, we also need to use the same database engine that the connection was created from. Otherwise we run the risk of e.g. connecting to the prod database and running a bunch of delete statements.

In order to work seamlessly with a local database, we also need to use the same database engine that the connection was created from. Otherwise we run the risk of e.g. connecting to the prod database and running a bunch of delete statements.
@karlhigley karlhigley self-assigned this Aug 20, 2024
Copy link
Contributor

@kluver kluver left a comment

Choose a reason for hiding this comment

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

lgtm,

If the concern is about connecting to the "wrong" database is there some way to take this further? Just brainstorming, but we could probably instrument the test database to put a table with a specific value in it and we can do a positive check for that on test start up and halt-out if we don't see that?

@karlhigley
Copy link
Collaborator Author

karlhigley commented Aug 20, 2024

This was less of an abstract concern and more of a "wait, I can't actually run the tests because it's trying to talk to two different databases" 😅

(No objection to further iteration on this though)

@karlhigley karlhigley merged commit 09d75c6 into main Aug 20, 2024
2 checks passed
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.

2 participants