Hi everyone!
I found that PostgreSQLContainer.getLivenessCheckPorts() doesn't properly creates a HashSet.
It creates a HashSet as return new HashSet<>(getMappedPort(POSTGRESQL_PORT)); but constractor of HashSet expects a capacity, not a content.
It should be return Set.of(getMappedPort(POSTGRESQL_PORT));
PostgreSQLContainer, row 66