Wait until the server is started
(self, retries=30)
| 122 | return server |
| 123 | |
| 124 | def wait(self, retries=30): |
| 125 | """Wait until the server is started""" |
| 126 | running = check_server(self.adj.host, self.adj.port, |
| 127 | '/__application__', retries=retries) |
| 128 | if running: |
| 129 | return True |
| 130 | try: |
| 131 | self.shutdown() |
| 132 | finally: |
| 133 | return False |