1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-28 09:33:54 +02:00

tests: minor fix in "incr_restore" module

This commit is contained in:
Grigory Smolkin 2020-06-23 17:31:52 +03:00
parent 97ef6db6af
commit 0aad77e959

View File

@ -19,11 +19,12 @@ class IncrRestoreTest(ProbackupTest, unittest.TestCase):
# @unittest.skip("skip")
def test_basic_incr_restore(self):
"""recovery to target timeline"""
"""incremental restore in CHECKSUM mode"""
fname = self.id().split('.')[3]
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
initdb_params=['--data-checksums'])
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
self.init_pb(backup_dir)
@ -31,7 +32,7 @@ class IncrRestoreTest(ProbackupTest, unittest.TestCase):
self.set_archiving(backup_dir, 'node', node)
node.slow_start()
node.pgbench_init(scale=10)
node.pgbench_init(scale=50)
self.backup_node(backup_dir, 'node', node)
@ -69,9 +70,9 @@ class IncrRestoreTest(ProbackupTest, unittest.TestCase):
node.stop()
self.restore_node(
print(self.restore_node(
backup_dir, 'node', node,
options=["-j", "4", "--incremental-mode=checksum"])
options=["-j", "4", "--incremental-mode=checksum"]))
pgdata_restored = self.pgdata_content(node.data_dir)
self.compare_pgdata(pgdata, pgdata_restored)