Splitting test class causes PSQLException: The connection attempt failed/BindExeption Address already in use: no further information
I use Jersey Test with Testcontainers (JdbcDatabaseContainer with PostGIS) and JUnit5. My tests are configured to run in parallel using the first available port as explained in the Jersey Test docs and maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
in Gradle. Also, I am ensuring my database is torn down after each test.
Splitting test class cause PSQLException: The connection attempt failed/BindExeption Address already in use: no further information
I use Jersey Test with Testcontainers and JUnit5. My tests are configured to run in parallel using the first available port as explained in the Jersey Test docs and maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
in Gradle. Also, I am ensuring my database is torn down after each test.