TJC/Test-postgresql — pull request #7 by m1ch4ls (2014-09-02 15:35:49+00:00)
Title: Fix when reusing the base_dir and connecting too fast

I found out that if I decide to use already set up base_dir and than skipping setup() the connection will fail because postmaster hasn't fully started yet.

I am not sure if waiting and retrying is the right approach, but it works in my case.