From c7a83af64e599599ee613fc453da756b9acc1854 Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Fri, 10 Aug 2018 12:33:09 +0300 Subject: [PATCH] We should use paranoia check after full and page restore --- tests/page.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/page.py b/tests/page.py index c0756c08..70f6d1c1 100644 --- a/tests/page.py +++ b/tests/page.py @@ -166,11 +166,6 @@ class PageBackupTest(ProbackupTest, unittest.TestCase): '\n Unexpected Error Message: {0}\n' ' CMD: {1}'.format(repr(self.output), self.cmd)) - # GET RESTORED PGDATA AND COMPARE - if self.paranoia: - pgdata_restored = self.pgdata_content(node.data_dir) - self.compare_pgdata(pgdata, pgdata_restored) - node.slow_start() full_result_new = node.execute("postgres", "SELECT * FROM t_heap") self.assertEqual(full_result, full_result_new) @@ -184,6 +179,12 @@ class PageBackupTest(ProbackupTest, unittest.TestCase): backup_id=page_backup_id, options=["-j", "4"]), '\n Unexpected Error Message: {0}\n' ' CMD: {1}'.format(repr(self.output), self.cmd)) + + # GET RESTORED PGDATA AND COMPARE + if self.paranoia: + pgdata_restored = self.pgdata_content(node.data_dir) + self.compare_pgdata(pgdata, pgdata_restored) + node.slow_start() page_result_new = node.execute("postgres", "SELECT * FROM t_heap") self.assertEqual(page_result, page_result_new)