-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: postgres container expects English log line to ensure started #695
Comments
sounds good, i would merge a pull request that specifies the reason for this change in a comment + linking to this issue. perhaps maybe also a test with a different locale as described above. apologies, did not consider this case in my testing, we have been trying to rely on logs as a more reliable/universal way to detect most of the community containers |
@dhofstetter can you test with mainline branch? |
@alexanderankin Sorry totally missed your Mail in my inbox. I have tested it and it seems to work at least for my case 👍🏾 |
Describe the bug
When starting a Postgres Testcontainer, the implementation expects a log line like the latter to ensure its properly started
In case you have a custom Postgres image (e.g. with lang/locales changed) this log line might not appear as expected.
To Reproduce
use the dockerfile above, and the log lines are more like
I think that using pg_isready is sufficient - so changing the code of PostgresContainer to
works like a charm.
The text was updated successfully, but these errors were encountered: