1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-07 13:40:17 +02:00

tests: minor fix for PGPRO-1918

This commit is contained in:
Grigory Smolkin 2019-02-16 15:28:22 +03:00
parent 6b4f698da0
commit 119f118af0

View File

@ -97,7 +97,10 @@ class LockingTest(ProbackupTest, unittest.TestCase):
self.assertEqual(
'RUNNING', self.show_pb(backup_dir, 'node')[1]['status'])
self.validate_pb(backup_dir)
try:
self.validate_pb(backup_dir)
except:
pass
self.assertEqual(
'OK', self.show_pb(backup_dir, 'node')[0]['status'])
@ -153,7 +156,10 @@ class LockingTest(ProbackupTest, unittest.TestCase):
os.remove(
os.path.join(backup_dir, 'backups', 'node', backup_id, 'backup.pid'))
self.validate_pb(backup_dir)
try:
self.validate_pb(backup_dir)
except:
pass
self.assertEqual(
'OK', self.show_pb(backup_dir, 'node')[0]['status'])