1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-04-13 12:00:41 +02:00

tests: fix test_validate_wal_unreal_values() and test_validate_wal_lost_segment_1()

This commit is contained in:
Grigory Smolkin 2018-12-29 12:42:59 +03:00
parent c69d4ed7f8
commit 93cedf1747

View File

@ -117,9 +117,9 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
"Output: {0} \n CMD: {1}".format(
repr(self.output), self.cmd))
except ProbackupException as e:
self.assertEqual(
self.assertIn(
'ERROR: Backup satisfying target options is not found',
e.message,
'ERROR: Backup satisfying target options is not found.\n',
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
repr(e.message), self.cmd))
@ -1309,8 +1309,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
repr(self.output), self.cmd))
except ProbackupException as e:
self.assertTrue(
"WAL segment \"{0}\" is absent".format(
file) in e.message and
"is absent" in e.message and
"WARNING: There are not enough WAL records to consistenly "
"restore backup {0}".format(backup_id) in e.message and
"WARNING: Backup {0} WAL segments are corrupted".format(