Fix postgres errors when running tests #245
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
question
S
UX research
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-test-postgres-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the implemented changes
The changes were:
By reusing postgres connections when running tests, we avoid running out of them.
What has been changed?
What it does:
to grant the request process and all processes it spawns (including LiveView processes)
permission to use the same database connection as the test
supervisor (not linked to the test process), so they would normally try to checkout their
own connections
config :mv, :sql_sandbox, true
What it does:
only in test environment
performance
Definition of Done
Code Quality
Accessibility
Testing
Additional Notes
ceb8da8eectoe9bcb25d20e9bcb25d20todfff2486b5