We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7fbe1f8 commit35a5f84Copy full SHA for 35a5f84
tests/delete.py
@@ -263,7 +263,7 @@ def test_delete_orphaned_wal_segments(self):
263
node.stop()
264
265
# Check wals
266
-wals_dir=os.path.join(backup_dir,'wal','node')
+wals_dir=os.path.join(backup_dir,'wal','node','00000000')
267
wals= [fforfinos.listdir(wals_dir)ifos.path.isfile(os.path.join(wals_dir,f))]
268
original_wal_quantity=len(wals)
269
@@ -299,8 +299,10 @@ def test_delete_orphaned_wal_segments(self):
299
300
# Delete last backup
301
self.delete_pb(backup_dir,'node',backup_3_id,options=['--wal'])
302
-wals= [fforfinos.listdir(wals_dir)ifos.path.isfile(os.path.join(wals_dir,f))]
303
-self.assertEqual (0,len(wals),"Number of wals should be equal to 0")
+
+self.assertFalse(
304
+os.path.exists(wals_dir),
305
+"Number of wals should be equal to 0")
306
307
# Clean after yourself
308
self.del_test_dir(module_name,fname)