onaio / kaznet-web

a tasking application built on top of Onadata
Apache License 2.0
4 stars 1 forks source link

Loop to Check if Postgres is Available in Tests #352

Closed jasonrogena closed 5 years ago

jasonrogena commented 5 years ago

Since nc will technically fail if PostgreSQL isn't available within 30 seconds, use a loop to check if PostgreSQL is available every 10 seconds for 300 seconds.

Signed-off-by: Jason Rogena jason@rogena.me