Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres wait strategy HostPortWaitStrategy doesn't work #3382

Closed
Kabal163 opened this issue Oct 24, 2020 · 0 comments
Closed

Postgres wait strategy HostPortWaitStrategy doesn't work #3382

Kabal163 opened this issue Oct 24, 2020 · 0 comments

Comments

@Kabal163
Copy link

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

pawellozinski added a commit to pawellozinski/testcontainers-java that referenced this issue Oct 26, 2020
@rnorth rnorth closed this as completed in 4a529f6 Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant