Skip to content

Commit fb88c42

Browse files
committed
PGPRO-1504: test minor fixes
1 parent f960c67 commit fb88c42

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/validate_test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,11 +1432,14 @@ def test_validate_corrupted_full(self):
14321432
def test_validate_corrupted_full_1(self):
14331433
"""
14341434
make node with archiving, take full backup, and three page backups,
1435-
take another full backup and three page backups
1435+
take another full backup and four page backups
14361436
corrupt second full backup, run validate, check that
14371437
second full backup became CORRUPT and his page backups are ORPHANs
1438-
remove corruption and run valudate again, check that
1439-
second full backup and his page backups are OK
1438+
remove corruption from full backup and corrupt his second page backup
1439+
run valudate again, check that
1440+
second full backup and his firts page backups are OK,
1441+
second page should be CORRUPT
1442+
third page should be ORPHAN
14401443
"""
14411444
fname = self.id().split('.')[3]
14421445
node = self.make_simple_node(
@@ -1524,5 +1527,4 @@ def test_validate_corrupted_full_1(self):
15241527
self.assertTrue(self.show_pb(backup_dir, 'node')[6]['Status'] == 'ORPHAN')
15251528

15261529
# Clean after yourself
1527-
exit(1)
15281530
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)