Skip to content

Postgres wait strategy HostPortWaitStrategy doesn't work #3382

@Kabal163

Description

@Kabal163

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions