Skip to content

Commit 93cedf1

Browse files
committed
tests: fix test_validate_wal_unreal_values() and test_validate_wal_lost_segment_1()
1 parent c69d4ed commit 93cedf1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: tests/validate_test.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ def test_validate_wal_unreal_values(self):
117117
"Output: {0} \n CMD: {1}".format(
118118
repr(self.output), self.cmd))
119119
except ProbackupException as e:
120-
self.assertEqual(
120+
self.assertIn(
121+
'ERROR: Backup satisfying target options is not found',
121122
e.message,
122-
'ERROR: Backup satisfying target options is not found.\n',
123123
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
124124
repr(e.message), self.cmd))
125125

@@ -1309,8 +1309,7 @@ def test_validate_wal_lost_segment_1(self):
13091309
repr(self.output), self.cmd))
13101310
except ProbackupException as e:
13111311
self.assertTrue(
1312-
"WAL segment \"{0}\" is absent".format(
1313-
file) in e.message and
1312+
"is absent" in e.message and
13141313
"WARNING: There are not enough WAL records to consistenly "
13151314
"restore backup {0}".format(backup_id) in e.message and
13161315
"WARNING: Backup {0} WAL segments are corrupted".format(

0 commit comments

Comments
 (0)