Skip to content

Commit c7a83af

Browse files
committed
We should use paranoia check after full and page restore
1 parent 3fe942f commit c7a83af

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/page.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ def test_page_stream(self):
166166
'\n Unexpected Error Message: {0}\n'
167167
' CMD: {1}'.format(repr(self.output), self.cmd))
168168

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-
174169
node.slow_start()
175170
full_result_new = node.execute("postgres", "SELECT * FROM t_heap")
176171
self.assertEqual(full_result, full_result_new)
@@ -184,6 +179,12 @@ def test_page_stream(self):
184179
backup_id=page_backup_id, options=["-j", "4"]),
185180
'\n Unexpected Error Message: {0}\n'
186181
' CMD: {1}'.format(repr(self.output), self.cmd))
182+
183+
# GET RESTORED PGDATA AND COMPARE
184+
if self.paranoia:
185+
pgdata_restored = self.pgdata_content(node.data_dir)
186+
self.compare_pgdata(pgdata, pgdata_restored)
187+
187188
node.slow_start()
188189
page_result_new = node.execute("postgres", "SELECT * FROM t_heap")
189190
self.assertEqual(page_result, page_result_new)

0 commit comments

Comments
 (0)