HikariCP Connection Pool Exhaustion with Testcontainers and Spring Boot when Building with Gradle
I am using Testcontainers with Spring Boot for integration testing in my project, but I’m facing an issue where the HikariCP connection pool becomes exhausted, leading to Connection is not available, request timed out errors. This issue only occurs when I build and run tests using Gradle. When I build and run the same tests in IntelliJ IDEA, everything works fine.
HikariCP Connection Pool Exhaustion with Testcontainers and Spring Boot when Building with Gradle
I am using Testcontainers with Spring Boot for integration testing in my project, but I’m facing an issue where the HikariCP connection pool becomes exhausted, leading to Connection is not available, request timed out errors. This issue only occurs when I build and run tests using Gradle. When I build and run the same tests in IntelliJ IDEA, everything works fine.