1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-09-16 09:26:30 +02:00

tests: slow_start() fix

This commit is contained in:
Grigory Smolkin
2019-01-14 20:20:24 +03:00
parent 4d8b6f50c9
commit 58cd26f10a

View File

@@ -124,17 +124,15 @@ def slow_start(self, replica=False):
# "SELECT not pg_is_in_recovery()",
# suppress={testgres.NodeConnection})
if replica:
query = 'SELECT not pg_is_in_recovery()'
else:
query = 'SELECT pg_is_in_recovery()'
else:
query = 'SELECT not pg_is_in_recovery()'
self.start()
while True:
try:
self.safe_psql(
'postgres',
query)
break
if self.safe_psql('postgres', query) == 't\n':
break
except testgres.QueryException as e:
if 'database system is starting up' in e[0]:
continue