Merge lp:~allenap/maas/kill-other-database-connections-in-tests into lp:~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5856 |
Proposed branch: | lp:~allenap/maas/kill-other-database-connections-in-tests |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
41 lines (+24/-5) 1 file modified
src/maasserver/testing/resources.py (+24/-5) |
To merge this branch: | bzr merge lp:~allenap/maas/kill-other-database-connections-in-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+320863@code.launchpad.net |
Commit message
Kill other connections when about to drop a database in the test database resource manager.
To post a comment you must log in.
This affects only tests so I'm going to self-review it.
FWIW, this improves feedback when a test leaks database connections, and appears to make things more predictable when writing new tests (especially when you accidentally leak database connections).