SelfHoster: Wait until the server is really ready.
authorMurray Cumming <murrayc@murrayc.com>
Fri, 8 Jun 2012 15:43:57 +0000 (17:43 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 8 Jun 2012 15:43:57 +0000 (17:43 +0200)
commite5b0f7b67dd11a51537b51395c5d18e92f735977
treeeb1aeb9675d0ad02296c348ac44ce70db7daf6e7
parent9b1ebd07686fca0c2b72bda2c03b797ff1767dfc
SelfHoster: Wait until the server is really ready.

* src/test/java/org/glom/web/server/SelfHoster.java
selfHost(): Attempt the connection after starting the server, retrying
a few times if necessary, so that the server is really ready already when
we return from this method.
The regular Glom code does this too because pg_ctl reports success too soon.
ChangeLog
src/test/java/org/glom/web/server/SelfHoster.java