Skip to content

Commit 4914f31

Browse files
committed
Update tarantool_server.py for long loading of tarantool
1 parent 2428af1 commit 4914f31

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/suites/lib/tarantool_server.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,14 @@ def wait_until_started(self):
213213
while True:
214214
try:
215215
temp = TarantoolAdmin('localhost', self.args['admin'])
216-
ans = temp('box.info.status')[0]
217-
if ans in ('running', 'primary', 'hot_standby', 'orphan', 'loading') or ans.startswith('replica'):
218-
return True
219-
else:
220-
raise Exception("Strange output for `box.info.status`: %s" % (ans))
216+
while True:
217+
ans = temp('box.info.status')[0]
218+
if ans in ('running', 'hot_standby', 'orphan') or ans.startswith('replica'):
219+
return True
220+
elif ans in ('loading',):
221+
continue
222+
else:
223+
raise Exception("Strange output for `box.info.status`: %s" % (ans))
221224
except socket.error as e:
222225
if e.errno == errno.ECONNREFUSED:
223226
time.sleep(0.1)

0 commit comments

Comments
 (0)