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):
81
81
self .backup_node (
82
82
backup_dir , 'node' , node , options = ['--log-level-file=verbose' ])
83
83
84
- if self .paranoia :
85
- pgdata = self .pgdata_content (node .data_dir )
84
+ pgdata = self .pgdata_content (node .data_dir )
86
85
87
86
if not self .remote :
88
87
log_file_path = os .path .join (backup_dir , "log" , "pg_probackup.log" )
89
88
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 ,
92
93
'Failed to detect nullified block' )
93
94
94
95
self .validate_pb (backup_dir , options = ["-j" , "4" ])
95
96
node .cleanup ()
96
97
97
98
self .restore_node (backup_dir , 'node' , node )
98
99
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 )
102
102
103
103
# Clean after yourself
104
104
self .del_test_dir (module_name , fname )
You can’t perform that action at this time.
0 commit comments