Skip to content

Commit

Permalink
fix: Postgres wait strategy HostPortWaitStrategy doesn't work testcon…
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellozinski committed Oct 26, 2020
1 parent 1b4a2a6 commit ed06635
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import org.testcontainers.utility.DockerImageName;

import java.time.Duration;
import java.util.HashSet;
import java.util.Set;

import static java.time.temporal.ChronoUnit.SECONDS;
import static java.util.Collections.singleton;

/**
* @author richardnorth
Expand Down Expand Up @@ -63,7 +63,7 @@ public PostgreSQLContainer(final DockerImageName dockerImageName) {
@NotNull
@Override
protected Set<Integer> getLivenessCheckPorts() {
return new HashSet<>(getMappedPort(POSTGRESQL_PORT));
return singleton(getMappedPort(POSTGRESQL_PORT));
}

@Override
Expand Down

0 comments on commit ed06635

Please sign in to comment.