-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testdb.Manager: try to recreate pool after cleanup error (#778)
In recent changes from #769 / fb6b3e9, I inadvertently tweaked the logic of the testdb.Manager to throw away / destroy a resource if it encountered cleanup errors. Destroying the resource has the side effect of causing the manager to try to reallocate a new database with a new number, potentially higher than the number of test databases we've created. Instead, try to just make a new pool on the same database, and only destroy the resource if that fails.
- Loading branch information
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters