You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Testcontainers.PostgreSql/PostgreSqlBuilder.cs
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,16 @@ public override PostgreSqlContainer Build()
74
74
{
75
75
Validate();
76
76
77
+
// The PostgreSql image does not contain pg_isready before version 9.3. Wait for logging message that says server is ready - "PostgreSQL init process complete; ready for start up."
78
+
// this was used instead of using psql select version() because the database is still not ready to accept external connection https://github.com/docker-library/postgres/issues/146
// By default, the base builder waits until the container is running. However, for PostgreSql, a more advanced waiting strategy is necessary that requires access to the configured database and username.
78
81
// If the user does not provide a custom waiting strategy, append the default PostgreSql waiting strategy.
0 commit comments