Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ public SELF withPassword(final String password) {

@Override
protected void waitUntilContainerStarted() {
// Same gate as the non-deprecated container: strategy first, then the
// JDBC readiness check from JdbcDatabaseContainer. See issue #11981.
getWaitStrategy().waitUntilReady(this);
super.waitUntilContainerStarted();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ public PostgreSQLContainer withPassword(final String password) {

@Override
protected void waitUntilContainerStarted() {
// Run the configured wait strategy first (defaults to the log-output
// strategy), then the JDBC readiness gate from JdbcDatabaseContainer:
// a real host-side connection running the test query. The log line
// alone can precede mapped-port reachability on Docker Desktop/Colima,
// giving Connection refused on first connect. See issue #11981.
getWaitStrategy().waitUntilReady(this);
super.waitUntilContainerStarted();
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.