ready yet? nope, please wait!

Related-Change: Iab923c4f48ac7a5dd41237761ed91d01a59dc77c

Change-Id: Id4e17569e9ec856663e1539eaf72872296698367
Signed-off-by: Thiago da Silva <thiago@redhat.com>
This commit is contained in:
Thiago da Silva 2017-07-24 16:34:01 -04:00
parent d40c9ed3a2
commit d0bfd036af

View File

@ -59,7 +59,7 @@ def get_server_number(ipport, ipport2server):
def start_server(ipport, ipport2server): def start_server(ipport, ipport2server):
server, number = get_server_number(ipport, ipport2server) server, number = get_server_number(ipport, ipport2server)
err = Manager([server]).start(number=number, wait=False) err = Manager([server]).start(number=number, wait=True)
if err: if err:
raise Exception('unable to start %s' % ( raise Exception('unable to start %s' % (
server if not number else '%s%s' % (server, number))) server if not number else '%s%s' % (server, number)))
@ -358,7 +358,7 @@ class ProbeTest(unittest.TestCase):
'servers_per_port', '0')) 'servers_per_port', '0'))
for c in self.configs['object-replicator'].values()) for c in self.configs['object-replicator'].values())
Manager(['main']).start(wait=False) Manager(['main']).start(wait=True)
for ipport in self.ipport2server: for ipport in self.ipport2server:
check_server(ipport, self.ipport2server) check_server(ipport, self.ipport2server)
proxy_ipport = ('127.0.0.1', 8080) proxy_ipport = ('127.0.0.1', 8080)