File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ def test_delete_orphaned_wal_segments(self):
263263 node .stop ()
264264
265265 # Check wals
266- wals_dir = os .path .join (backup_dir , 'wal' , 'node' )
266+ wals_dir = os .path .join (backup_dir , 'wal' , 'node' , '00000000' )
267267 wals = [f for f in os .listdir (wals_dir ) if os .path .isfile (os .path .join (wals_dir , f ))]
268268 original_wal_quantity = len (wals )
269269
@@ -299,8 +299,10 @@ def test_delete_orphaned_wal_segments(self):
299299
300300 # Delete last backup
301301 self .delete_pb (backup_dir , 'node' , backup_3_id , options = ['--wal' ])
302- wals = [f for f in os .listdir (wals_dir ) if os .path .isfile (os .path .join (wals_dir , f ))]
303- self .assertEqual (0 , len (wals ), "Number of wals should be equal to 0" )
302+
303+ self .assertFalse (
304+ os .path .exists (wals_dir ),
305+ "Number of wals should be equal to 0" )
304306
305307 # Clean after yourself
306308 self .del_test_dir (module_name , fname )
You can’t perform that action at this time.
0 commit comments