File tree 1 file changed +5
-3
lines changed
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):
263
263
node .stop ()
264
264
265
265
# Check wals
266
- wals_dir = os .path .join (backup_dir , 'wal' , 'node' )
266
+ wals_dir = os .path .join (backup_dir , 'wal' , 'node' , '00000000' )
267
267
wals = [f for f in os .listdir (wals_dir ) if os .path .isfile (os .path .join (wals_dir , f ))]
268
268
original_wal_quantity = len (wals )
269
269
@@ -299,8 +299,10 @@ def test_delete_orphaned_wal_segments(self):
299
299
300
300
# Delete last backup
301
301
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" )
304
306
305
307
# Clean after yourself
306
308
self .del_test_dir (module_name , fname )
You can’t perform that action at this time.
0 commit comments