Skip to content

Commit 9dde05e

Browse files
committed
tests: page backup in multiple workers
1 parent f23b0e7 commit 9dde05e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/page.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ def test_page_stream(self):
149149
page_result = node.execute("postgres", "SELECT * FROM t_heap")
150150
page_backup_id = self.backup_node(
151151
backup_dir, 'node', node,
152-
backup_type='page', options=['--stream'])
152+
backup_type='page', options=['--stream', '-j', '4'])
153+
154+
if self.paranoia:
155+
pgdata = self.pgdata_content(node.data_dir)
153156

154157
# Drop Node
155158
node.cleanup()
@@ -162,6 +165,12 @@ def test_page_stream(self):
162165
backup_id=full_backup_id, options=["-j", "4"]),
163166
'\n Unexpected Error Message: {0}\n'
164167
' CMD: {1}'.format(repr(self.output), self.cmd))
168+
169+
# GET RESTORED PGDATA AND COMPARE
170+
if self.paranoia:
171+
pgdata_restored = self.pgdata_content(node.data_dir)
172+
self.compare_pgdata(pgdata, pgdata_restored)
173+
165174
node.slow_start()
166175
full_result_new = node.execute("postgres", "SELECT * FROM t_heap")
167176
self.assertEqual(full_result, full_result_new)

0 commit comments

Comments
 (0)