testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
https://dotnet.testcontainers.org
MIT License
3.65k stars 250 forks source link

chore: Use the `pg_isready` command to assess whether PostgreSQL is ready or not #1111

Closed 0xced closed 4 months ago

0xced commented 4 months ago

This strategy aligns with the MySQL and MariaDb wait strategies.

Also, logs have changed over time and the current strategy doesn't work with older PostgreSQL Docker images (for example v9.6) which does not produce the same logs as recent versions of the PostgreSQL docker image.

netlify[bot] commented 4 months ago

Deploy Preview for testcontainers-dotnet ready!

Name Link
Latest commit e2b090176f5f4e3764316bd4080f69591bb6ddad
Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/65c7fa61493e3a0008c9d11e
Deploy Preview https://deploy-preview-1111--testcontainers-dotnet.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.