File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments