mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-25 09:01:48 +02:00
tests: various fixes
This commit is contained in:
parent
5d0a3be536
commit
f7159f3333
@ -2279,7 +2279,7 @@ class ArchiveTest(ProbackupTest, unittest.TestCase):
|
|||||||
# generate WAL, copy it into prefetch directory, then corrupt
|
# generate WAL, copy it into prefetch directory, then corrupt
|
||||||
# some segment
|
# some segment
|
||||||
node.pgbench_init(scale=20)
|
node.pgbench_init(scale=20)
|
||||||
sleep(10)
|
sleep(20)
|
||||||
|
|
||||||
# now copy WAL files into prefetch directory and corrupt some of them
|
# now copy WAL files into prefetch directory and corrupt some of them
|
||||||
archive_dir = os.path.join(backup_dir, 'wal', 'node')
|
archive_dir = os.path.join(backup_dir, 'wal', 'node')
|
||||||
|
@ -1348,7 +1348,8 @@ class BackupTest(ProbackupTest, unittest.TestCase):
|
|||||||
node = self.make_simple_node(
|
node = self.make_simple_node(
|
||||||
base_dir=os.path.join(module_name, fname, 'node'),
|
base_dir=os.path.join(module_name, fname, 'node'),
|
||||||
set_replication=True,
|
set_replication=True,
|
||||||
initdb_params=['--data-checksums'])
|
initdb_params=['--data-checksums'],
|
||||||
|
pg_options={'autovacuum': 'off'})
|
||||||
|
|
||||||
self.init_pb(backup_dir)
|
self.init_pb(backup_dir)
|
||||||
self.add_instance(backup_dir, 'node', node)
|
self.add_instance(backup_dir, 'node', node)
|
||||||
|
@ -392,6 +392,7 @@ class SetBackupTest(ProbackupTest, unittest.TestCase):
|
|||||||
fname = self.id().split('.')[3]
|
fname = self.id().split('.')[3]
|
||||||
node = self.make_simple_node(
|
node = self.make_simple_node(
|
||||||
base_dir=os.path.join(module_name, fname, 'node'),
|
base_dir=os.path.join(module_name, fname, 'node'),
|
||||||
|
set_replication=True,
|
||||||
initdb_params=['--data-checksums'])
|
initdb_params=['--data-checksums'])
|
||||||
|
|
||||||
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
|
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
|
||||||
|
Loading…
Reference in New Issue
Block a user