You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
pawellozinski
added a commit
to pawellozinski/testcontainers-java
that referenced
this issue
Oct 26, 2020
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
The text was updated successfully, but these errors were encountered: