#1314 Wait for Postgres to be running before starting the unit tests
Closed: Fixed by mprahl. Opened by mprahl.

When running the unit tests with Postgres, the unit tests can start before the Postgres container is ready, which causes the unit tests to fail. Ideally, the script should wait until Postgres is ready by running a query in the container. If that ends up being too difficult, we can just use the sleep command.


@cqi FYI

The --health-* options of the run command could be useful here.

Metadata Update from @cqi:
- Issue assigned to cqi

Commit 60b0e8da fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/mbs/issues/1314

Please continue any further discussion there.

Metadata
Related Pull Requests