You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-17 07:22:20 +02:00
[Issue #225] fix tests
This commit is contained in:
@ -413,16 +413,9 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
||||
backup_dir, 'node', node, backup_type='ptrack',
|
||||
options=['--stream'])
|
||||
|
||||
# TODO: what's the point in taking pgdata content, then taking
|
||||
# backup, and the trying to compare those two? Backup issues a
|
||||
# checkpoint, so it will modify pgdata with close to 100% chance.
|
||||
if self.paranoia:
|
||||
pgdata = self.pgdata_content(node.data_dir)
|
||||
|
||||
self.backup_node(
|
||||
backup_dir, 'node', node, backup_type='ptrack',
|
||||
options=['--stream'])
|
||||
|
||||
node_restored = self.make_simple_node(
|
||||
base_dir=os.path.join(module_name, fname, 'node_restored'))
|
||||
node_restored.cleanup()
|
||||
@ -3954,7 +3947,7 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
||||
)
|
||||
except ProbackupException as e:
|
||||
self.assertIn(
|
||||
'ERROR: LSN from ptrack_control 0/0 differs from STOP LSN of previous backup',
|
||||
'ERROR: LSN from ptrack_control 0/0 differs from Start LSN of previous backup',
|
||||
e.message,
|
||||
'\n Unexpected Error Message: {0}\n'
|
||||
' CMD: {1}'.format(repr(e.message), self.cmd))
|
||||
|
Reference in New Issue
Block a user