Switch to use the new registry tests suite
This commit is contained in:
parent
8c1b0e673c
commit
5509dd350c
8 changed files with 12 additions and 198 deletions
|
@ -68,14 +68,16 @@ class liveFlaskServer(object):
|
|||
start_time = time.time()
|
||||
|
||||
while True:
|
||||
time.sleep(0.1)
|
||||
|
||||
elapsed_time = (time.time() - start_time)
|
||||
if elapsed_time > timeout:
|
||||
raise RuntimeError("Failed to start the server after %d seconds. " % timeout)
|
||||
|
||||
if self._can_ping_server():
|
||||
if self._can_connect():
|
||||
break
|
||||
|
||||
def _can_ping_server(self):
|
||||
def _can_connect(self):
|
||||
host, port = self._get_server_address()
|
||||
if port == 0:
|
||||
# Port specified by the user was 0, and the OS has not yet assigned
|
||||
|
|
Reference in a new issue