File tree 1 file changed +3
-4
lines changed
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):
117
117
"Output: {0} \n CMD: {1}" .format (
118
118
repr (self .output ), self .cmd ))
119
119
except ProbackupException as e :
120
- self .assertEqual (
120
+ self .assertIn (
121
+ 'ERROR: Backup satisfying target options is not found' ,
121
122
e .message ,
122
- 'ERROR: Backup satisfying target options is not found.\n ' ,
123
123
'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
124
124
repr (e .message ), self .cmd ))
125
125
@@ -1309,8 +1309,7 @@ def test_validate_wal_lost_segment_1(self):
1309
1309
repr (self .output ), self .cmd ))
1310
1310
except ProbackupException as e :
1311
1311
self .assertTrue (
1312
- "WAL segment \" {0}\" is absent" .format (
1313
- file ) in e .message and
1312
+ "is absent" in e .message and
1314
1313
"WARNING: There are not enough WAL records to consistenly "
1315
1314
"restore backup {0}" .format (backup_id ) in e .message and
1316
1315
"WARNING: Backup {0} WAL segments are corrupted" .format (
You can’t perform that action at this time.
0 commit comments