Closed mcherb closed 2 years ago
Hi @mcherb, if you are using embedded postgres together with spring or spring boot framework, consider using the following project: https://github.com/zonkyio/embedded-database-spring-test That project supports several database providers, including this one, see: https://github.com/zonkyio/embedded-database-spring-test#using-zonky-provider-previous-default If the problem persists after switching to that library, please open a related issue there.
I'm running cucumber tests in a spring boot project.
Just after the feature is terminated I'm receiving this logs:
Any further connection to the database will fail. Exemple :
The onDestoy method will generate this exception :
When I have investigated a little, I found that this shutdown hook is triggered
I think that this hook is triggered too early !
Here is a sample to illustrate the bug