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',
|
backup_dir, 'node', node, backup_type='ptrack',
|
||||||
options=['--stream'])
|
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:
|
if self.paranoia:
|
||||||
pgdata = self.pgdata_content(node.data_dir)
|
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(
|
node_restored = self.make_simple_node(
|
||||||
base_dir=os.path.join(module_name, fname, 'node_restored'))
|
base_dir=os.path.join(module_name, fname, 'node_restored'))
|
||||||
node_restored.cleanup()
|
node_restored.cleanup()
|
||||||
@ -3954,7 +3947,7 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
|||||||
)
|
)
|
||||||
except ProbackupException as e:
|
except ProbackupException as e:
|
||||||
self.assertIn(
|
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,
|
e.message,
|
||||||
'\n Unexpected Error Message: {0}\n'
|
'\n Unexpected Error Message: {0}\n'
|
||||||
' CMD: {1}'.format(repr(e.message), self.cmd))
|
' CMD: {1}'.format(repr(e.message), self.cmd))
|
||||||
|
Reference in New Issue
Block a user