Skip to content

Commit deebc5c

Browse files
authored
Update PostgreSQLContainer.java
Only wait for one appearance of log message
1 parent 80ae5d7 commit deebc5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/postgresql/src/main/java/org/testcontainers/containers/PostgreSQLContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public PostgreSQLContainer(final DockerImageName dockerImageName) {
6060
this.waitStrategy =
6161
new LogMessageWaitStrategy()
6262
.withRegEx(".*database system is ready to accept connections.*\\s")
63-
.withTimes(2)
63+
.withTimes(1)
6464
.withStartupTimeout(Duration.of(60, ChronoUnit.SECONDS));
6565
this.setCommand("postgres", "-c", FSYNC_OFF_OPTION);
6666

0 commit comments

Comments
 (0)