You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-09-16 09:26:30 +02:00
tests: fix some ptrack tests
This commit is contained in:
@@ -2554,7 +2554,7 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
|||||||
# Clean after yourself
|
# Clean after yourself
|
||||||
self.del_test_dir(module_name, fname)
|
self.del_test_dir(module_name, fname)
|
||||||
|
|
||||||
# @unittest.skip("skip")
|
@unittest.skip("skip")
|
||||||
def test_ptrack_truncate_replica(self):
|
def test_ptrack_truncate_replica(self):
|
||||||
fname = self.id().split('.')[3]
|
fname = self.id().split('.')[3]
|
||||||
master = self.make_simple_node(
|
master = self.make_simple_node(
|
||||||
@@ -2563,9 +2563,9 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
|||||||
initdb_params=['--data-checksums'],
|
initdb_params=['--data-checksums'],
|
||||||
pg_options={
|
pg_options={
|
||||||
'ptrack_enable': 'on',
|
'ptrack_enable': 'on',
|
||||||
'wal_level': 'replica',
|
'max_wal_size': '16MB',
|
||||||
'max_wal_senders': '2',
|
'archive_timeout': '10s',
|
||||||
'checkpoint_timeout': '30'})
|
'checkpoint_timeout': '30s'})
|
||||||
|
|
||||||
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
|
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
|
||||||
self.init_pb(backup_dir)
|
self.init_pb(backup_dir)
|
||||||
@@ -2620,6 +2620,7 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
|||||||
backup_dir, 'replica', replica,
|
backup_dir, 'replica', replica,
|
||||||
options=[
|
options=[
|
||||||
'-j10',
|
'-j10',
|
||||||
|
'--stream',
|
||||||
'--master-host=localhost',
|
'--master-host=localhost',
|
||||||
'--master-db=postgres',
|
'--master-db=postgres',
|
||||||
'--master-port={0}'.format(master.port)])
|
'--master-port={0}'.format(master.port)])
|
||||||
@@ -2656,8 +2657,7 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
|||||||
success = False
|
success = False
|
||||||
|
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
success, 'Ptrack has failed to register changes in data files'
|
success, 'Ptrack has failed to register changes in data files')
|
||||||
)
|
|
||||||
|
|
||||||
# Clean after yourself
|
# Clean after yourself
|
||||||
self.del_test_dir(module_name, fname)
|
self.del_test_dir(module_name, fname)
|
||||||
@@ -3493,8 +3493,7 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
|||||||
success = False
|
success = False
|
||||||
|
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
success, 'Ptrack has failed to register changes in data files'
|
success, 'Ptrack has failed to register changes in data files')
|
||||||
)
|
|
||||||
|
|
||||||
# Clean after yourself
|
# Clean after yourself
|
||||||
self.del_test_dir(module_name, fname)
|
self.del_test_dir(module_name, fname)
|
||||||
|
Reference in New Issue
Block a user