File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -81,24 +81,24 @@ def test_basic_validate_nullified_heap_page_backup(self):
8181 self .backup_node (
8282 backup_dir , 'node' , node , options = ['--log-level-file=verbose' ])
8383
84- if self .paranoia :
85- pgdata = self .pgdata_content (node .data_dir )
84+ pgdata = self .pgdata_content (node .data_dir )
8685
8786 if not self .remote :
8887 log_file_path = os .path .join (backup_dir , "log" , "pg_probackup.log" )
8988 with open (log_file_path ) as f :
90- self .assertTrue (
91- '{0} blknum 1, empty page' .format (file_path ) in f .read (),
89+ log_content = f .read ()
90+ self .assertIn (
91+ 'File: "{0}" blknum 1, empty page' .format (file ),
92+ log_content ,
9293 'Failed to detect nullified block' )
9394
9495 self .validate_pb (backup_dir , options = ["-j" , "4" ])
9596 node .cleanup ()
9697
9798 self .restore_node (backup_dir , 'node' , node )
9899
99- if self .paranoia :
100- pgdata_restored = self .pgdata_content (node .data_dir )
101- self .compare_pgdata (pgdata , pgdata_restored )
100+ pgdata_restored = self .pgdata_content (node .data_dir )
101+ self .compare_pgdata (pgdata , pgdata_restored )
102102
103103 # Clean after yourself
104104 self .del_test_dir (module_name , fname )
You can’t perform that action at this time.
0 commit comments